diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 12:34:11 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 13:00:42 -0800 |
commit | c85c1f5480ac8f7c0d43a4b0f353e6f6828901af (patch) | |
tree | dc694fdd406223695e68aa84c33ecac0d050c581 | |
parent | b77d54e21526455b41e406c1cb43c781f4398817 (diff) |
Remove ifdefs checking for ultrix & hpux
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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 |