#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);
}