Whamcloud - gitweb
new upstream libsysio snapshot (20041101)
[fs/lustre-release.git] / libsysio / src / fcntl.c
index c8a801a..22e9382 100644 (file)
 
 #ifdef HAVE_LUSTRE_HACK
 #include <syscall.h>
+#include <native.h>
 
 static int
 _sysio_fcntl(int fd, int cmd, va_list ap, int *rtn)
 {
        long arg = va_arg(ap, long);
 
-       *rtn = syscall(SYS_fcntl, fd, cmd, arg);
+       *rtn = syscall(SYSIO_SYS_fcntl, fd, cmd, arg);
        return *rtn == -1 ? -errno : 0;
 }
 #endif