Commit 4e3bec8c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't declare memset.

Fall back to O_NONBLOCK if FNDELAY is undefined.
parent dc176037
......@@ -27,7 +27,7 @@
/*
** External function declarations
*/
extern void *memset(void *, int, int);
/*extern void *memset(void *, int, int);*/
extern int close(int);
extern time_t time(time_t *);
extern int read(int fd, char *buf, int len);
......@@ -365,7 +365,11 @@ isc_openfd(IscMaster *mcb,
return NULL;
}
#ifdef FNDELAY
if (fcntl(fd, F_SETFL, res | FNDELAY) == -1)
#else
if (fcntl(fd, F_SETFL, res | O_NONBLOCK) == -1)
#endif
{
close(fd);
return NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment