X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=libsysio%2Ftests%2Ftest_rename.c;h=dbb0d922cf108f902b2062cc7f9263bc4051011b;hb=58fa00472edb92e5cef936727774625b47e70ec3;hp=8bc2ec821001a87c6b049972af47b10155bce6eb;hpb=94651e417304eac34b09dbc6001c4ae762c53244;p=fs%2Flustre-release.git diff --git a/libsysio/tests/test_rename.c b/libsysio/tests/test_rename.c index 8bc2ec82..dbb0d92 100644 --- a/libsysio/tests/test_rename.c +++ b/libsysio/tests/test_rename.c @@ -52,6 +52,9 @@ #include #include +#if defined(SYSIO_LABEL_NAMES) +#include "sysio.h" +#endif #include "xtio.h" #include "test.h" @@ -95,7 +98,7 @@ main(int argc, char * const argv[]) exit(1); } - (void )umask(022); + (void )SYSIO_INTERFACE_NAME(umask)(022); /* * Source @@ -110,7 +113,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");