debian/rules: Use `git' potty wrapper.
[qmail] / ndelay_off.c
index 2c89dc3..86f8fbf 100644 (file)
@@ -2,8 +2,12 @@
 #include <fcntl.h>
 #include "ndelay.h"
 
+#ifndef O_NONBLOCK
+#define O_NONBLOCK O_NDELAY
+#endif
+
 int ndelay_off(fd)
 int fd;
 {
-  return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NDELAY);
+  return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
 }