Whamcloud - gitweb
b=20668
[fs/lustre-release.git] / libsysio / drivers / sockets / sockets.c
index d5d5c3c..8dec0a7 100644 (file)
@@ -53,7 +53,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>
@@ -523,7 +523,9 @@ SYSIO_INTERFACE_NAME(bind)(int sockfd,
 {
        int     err;
        struct file *fil;
+#ifdef SYSIO_SYS_socketcall
        unsigned long avec[3];
+#endif
 
        err = 0;
 
@@ -559,7 +561,9 @@ SYSIO_INTERFACE_NAME(listen)(int s, int backlog)
 {
        int     err;
        struct file *fil;
+#ifdef SYSIO_SYS_socketcall
        unsigned long avec[2];
+#endif
 
        err = 0;
 
@@ -595,7 +599,9 @@ SYSIO_INTERFACE_NAME(connect)(int sockfd,
 {
        int     err;
        struct file *fil;
+#ifdef SYSIO_SYS_socketcall
        unsigned long avec[3];
+#endif
 
        err = 0;