diff options
-rw-r--r-- | common.c | 3 | ||||
-rw-r--r-- | fd.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -310,8 +310,7 @@ SetUpConnectionSocket(int iport, void (*connectionFunc) (int)) #else (void) ioctl(ConnectionSocket, FIOCLEX, 0); #endif - /* ultrix reads hang on Unix sockets, hpux reads fail */ -#if defined(O_NONBLOCK) && (!defined(ultrix) && !defined(hpux)) +#ifdef O_NONBLOCK (void) fcntl(ConnectionSocket, F_SETFL, O_NONBLOCK); #else #ifdef FIOSNBIO @@ -261,8 +261,7 @@ AcceptConnection(FD ConnectionSocket) #else (void) ioctl(ClientFD, FIOCLEX, 0); #endif - /* ultrix reads hang on Unix sockets, hpux reads fail */ -#if defined(O_NONBLOCK) && (!defined(ultrix) && !defined(hpux)) +#ifdef O_NONBLOCK (void) fcntl(ClientFD, F_SETFL, O_NONBLOCK); #else #ifdef FIOSNBIO |