X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libsysio%2Ftests%2Ftest_rename.c;h=13aa1eec2c87f0361ee903f25357de40699a2193;hb=6b557f04e55b14e11b7fce310094e71331c8b204;hp=8bc2ec821001a87c6b049972af47b10155bce6eb;hpb=8692f4651696ff4324db3ad738d3fa62f68d7347;p=fs%2Flustre-release.git diff --git a/libsysio/tests/test_rename.c b/libsysio/tests/test_rename.c index 8bc2ec82..13aa1ee 100644 --- a/libsysio/tests/test_rename.c +++ b/libsysio/tests/test_rename.c @@ -41,8 +41,6 @@ * lee@sandia.gov */ -#define _BSD_SOURCE - #include #include #include @@ -51,7 +49,11 @@ #include #include #include +#include +#if defined(SYSIO_LABEL_NAMES) +#include "sysio.h" +#endif #include "xtio.h" #include "test.h" @@ -95,7 +97,7 @@ main(int argc, char * const argv[]) exit(1); } - (void )umask(022); + (void )SYSIO_INTERFACE_NAME(umask)(022); /* * Source @@ -110,7 +112,7 @@ main(int argc, char * const argv[]) if (argc - optind) usage(); - err = rename(spath, dpath); + err = SYSIO_INTERFACE_NAME(rename)(spath, dpath); if (err) perror("rename");