Whamcloud - gitweb
LU-3354 kernel: Kernel update [RHEL6.4 2.6.32-358.6.2.el6]
[fs/lustre-release.git] / libsysio / tests / test_unlink.c
index d168b28..3b02a9f 100644 (file)
 #include <dirent.h>
 #endif
 #include <sys/uio.h>
+#include <getopt.h>
 
+#if defined(SYSIO_LABEL_NAMES)
+#include "sysio.h"
+#endif
 #include "xtio.h"
 #include "test.h"
 
@@ -141,7 +145,7 @@ static int
 unlinkit(const char *path)
 {
 
-       if (unlink(path) != 0) {
+       if (SYSIO_INTERFACE_NAME(unlink)(path) != 0) {
                perror(path);
                return -1;
        }