Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Branch b1_4
[fs/lustre-release.git]
/
libsysio
/
tests
/
test_link.c
diff --git
a/libsysio/tests/test_link.c
b/libsysio/tests/test_link.c
index
218dd49
..
317bc5e
100644
(file)
--- a/
libsysio/tests/test_link.c
+++ b/
libsysio/tests/test_link.c
@@
-53,7
+53,11
@@
#endif
#include <sys/uio.h>
#include <sys/queue.h>
#endif
#include <sys/uio.h>
#include <sys/queue.h>
+#include <getopt.h>
+#if defined(SYSIO_LABEL_NAMES)
+#include "sysio.h"
+#endif
#include "xtio.h"
#include "test.h"
#include "xtio.h"
#include "test.h"
@@
-106,11
+110,11
@@
main(int argc, char *const argv[])
old = argv[optind++];
new = argv[optind++];
old = argv[optind++];
new = argv[optind++];
- if ((err =
link
(old, new)) != 0) {
+ if ((err =
SYSIO_INTERFACE_NAME(link)
(old, new)) != 0) {
perror("link");
break;
}
perror("link");
break;
}
- if ((err =
lstat
(new, &stbuf)) != 0) {
+ if ((err =
SYSIO_INTERFACE_NAME(lstat)
(new, &stbuf)) != 0) {
perror(new);
break;
}
perror(new);
break;
}