Whamcloud - gitweb
b=5667
authorjacob <jacob>
Tue, 5 Apr 2005 20:33:04 +0000 (20:33 +0000)
committerjacob <jacob>
Tue, 5 Apr 2005 20:33:04 +0000 (20:33 +0000)
always include our local ioctl.h if _IOW isn't defined, which is
probably only catamount.

lnet/utils/debug.c
lnet/utils/portals.c

index ba8b790..418fdbc 100644 (file)
@@ -34,7 +34,8 @@
 #include <string.h>
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
-#else
+#endif
+#ifndef _IOWR
 #include "ioctl.h"
 #endif
 #include <fcntl.h>
index e3f5916..a9f2e35 100644 (file)
@@ -34,7 +34,8 @@
 #include <fcntl.h>
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
-#else
+#endif
+#ifndef _IOWR
 #include "ioctl.h"
 #endif
 #include <errno.h>