debian/rules: Use `git' potty wrapper.
[qmail] / ndelay.c
CommitLineData
2117e02e
MW
1#include <sys/types.h>
2#include <fcntl.h>
3#include "ndelay.h"
4
212b6f5d
MW
5#ifndef O_NONBLOCK
6#define O_NONBLOCK O_NDELAY
7#endif
8
2117e02e
MW
9int ndelay_on(fd)
10int fd;
11{
212b6f5d 12 return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
2117e02e 13}