summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 12:34:11 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 13:00:42 -0800
commitc85c1f5480ac8f7c0d43a4b0f353e6f6828901af (patch)
treedc694fdd406223695e68aa84c33ecac0d050c581
parentb77d54e21526455b41e406c1cb43c781f4398817 (diff)
Remove ifdefs checking for ultrix & hpux
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--common.c3
-rw-r--r--fd.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/common.c b/common.c
index a32108f..b90d381 100644
--- a/common.c
+++ b/common.c
@@ -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
diff --git a/fd.c b/fd.c
index 43c08da..8fdae9b 100644
--- a/fd.c
+++ b/fd.c
@@ -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