X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libsysio%2Ftests%2Ftest_link.c;h=317bc5ea0c4a906dad8141324c2ac77f12956420;hb=d26b63d96fe5fe3509bfc2429ec5ff22f586981d;hp=218dd49e7cab703f872816ade70c1111b04aee7c;hpb=8692f4651696ff4324db3ad738d3fa62f68d7347;p=fs%2Flustre-release.git diff --git a/libsysio/tests/test_link.c b/libsysio/tests/test_link.c index 218dd49..317bc5e 100644 --- a/libsysio/tests/test_link.c +++ b/libsysio/tests/test_link.c @@ -53,7 +53,11 @@ #endif #include #include +#include +#if defined(SYSIO_LABEL_NAMES) +#include "sysio.h" +#endif #include "xtio.h" #include "test.h" @@ -106,11 +110,11 @@ main(int argc, char *const argv[]) old = argv[optind++]; new = argv[optind++]; - if ((err = link(old, new)) != 0) { + if ((err = SYSIO_INTERFACE_NAME(link)(old, new)) != 0) { perror("link"); break; } - if ((err = lstat(new, &stbuf)) != 0) { + if ((err = SYSIO_INTERFACE_NAME(lstat)(new, &stbuf)) != 0) { perror(new); break; }