diff options
author | Adam Jackson <ajax@redhat.com> | 2008-08-07 10:32:11 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-08-07 10:32:11 -0400 |
commit | 892ec928da3a0653ae54c321e4c3b1aa06c4e678 (patch) | |
tree | 32d74163681abff818a700e17c290c09e7539e91 /Xtranssock.c | |
parent | 339ddc413559d4cb117a72f87b2a70dae6911c32 (diff) |
Drastically simplify TRANS_OPEN_MAX.
If your OS doesn't have sysconf(3), then life is already hard for you.
Diffstat (limited to 'Xtranssock.c')
-rw-r--r-- | Xtranssock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xtranssock.c b/Xtranssock.c index bb1c792..ad3e116 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -99,6 +99,8 @@ from the copyright holders. #include <sys/stropts.h> #endif +#include <unistd.h> + #else /* !WIN32 */ #include <X11/Xwinsock.h> @@ -424,7 +426,7 @@ TRANS(SocketOpen) (int i, int type) Sockettrans2devtab[i].protocol)) < 0 #ifndef WIN32 #if (defined(X11_t) && !defined(USE_POLL)) || defined(FS_t) || defined(FONT_t) - || ciptr->fd >= TRANS_OPEN_MAX + || ciptr->fd >= sysconf(_SC_OPEN_MAX) #endif #endif ) { |