summaryrefslogtreecommitdiff
path: root/Xpoll.h.in
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-06-12 12:33:22 -0400
committerAdam Jackson <ajax@redhat.com>2009-06-12 12:33:22 -0400
commitbab9c572cd4dc916ff0acab99de8bb526212d77f (patch)
treef9e484e5d5157505712d6dac64d478716b468efa /Xpoll.h.in
parentced38e880b54f2aae31a5354aecb4235a129f0a4 (diff)
Remove a bunch of garbage for unsupported platforms.
Diffstat (limited to 'Xpoll.h.in')
-rw-r--r--Xpoll.h.in30
1 files changed, 2 insertions, 28 deletions
diff --git a/Xpoll.h.in b/Xpoll.h.in
index e2ee333..643c2e1 100644
--- a/Xpoll.h.in
+++ b/Xpoll.h.in
@@ -59,29 +59,11 @@ from The Open Group.
/* Below is the monster branch from hell. Basically, most systems will drop to
* 'the branch below is the fallthrough for halfway modern systems', and include
* <sys/select.h>, so we get the FD_* macros. */
-#if !defined(DGUX)
-# if (defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE)
+# if defined(SVR4) && !defined(FD_SETSIZE)
# include <sys/select.h>
-# ifdef luna
-# include <sysent.h>
-# endif
# else /* not SVR4/CRAY/AIXv3 */
-# if defined(AIXV4) /* AIX 4.2 fubar-ed <sys/select.h>, so try really hard. */
-# if !defined(NFDBITS)
-# include <sys/select.h>
-# endif
-# else /* the branch below is the fallthrough for halfway modern systems */
-# ifdef __QNX__ /* Make sure we get 256 bit select masks */
-# define FD_SETSIZE 256
-# endif
# include <sys/select.h>
-# endif
# endif
-#else /* DGUX -- No sys/select in Intel DG/ux */
-# include <sys/time.h>
-# include <sys/types.h>
-# include <unistd.h>
-#endif
#include <X11/Xmd.h>
@@ -110,21 +92,13 @@ typedef long fd_mask;
#define howmany(x,y) (((x)+((y)-1))/(y))
#endif
-#if defined(BSD) && BSD < 198911 && !defined(luna)
+#if defined(BSD) && BSD < 198911
typedef struct fd_set {
fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];
} fd_set;
#endif
-#ifndef hpux /* and perhaps old BSD ??? */
# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
-#else
-# ifndef _XPG4_EXTENDED /* HPUX 9.x and earlier */
-# define Select(n,r,w,e,t) select(n,(int*)r,(int*)w,(int*)e,(struct timeval*)t)
-# else
-# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
-# endif
-#endif
#define __X_FDS_BITS @USE_FDS_BITS@