diff options
author | Kean Johnson <kean@armory.com> | 2005-06-10 06:54:09 +0000 |
---|---|---|
committer | Kean Johnson <kean@armory.com> | 2005-06-10 06:54:09 +0000 |
commit | 93c6b535b22a07181eab21c70c072940429f110c (patch) | |
tree | 4cac083170cf22916b8dda6954707a59168f3af8 | |
parent | 2203407e26a173410b8a96368266f0e860381987 (diff) |
SCO port update for SCO OpenServer 5 and UnixWare 7. A few general cleanupssco_port_update
and bugs not specifically related to the port fixed along the way.
-rw-r--r-- | os/osdep.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -74,17 +74,16 @@ in this Software without prior written authorization from The Open Group. #define OPEN_MAX 256 #else #ifdef SVR4 -#ifdef SCO324 -#define OPEN_MAX sysconf(_SC_OPEN_MAX) -#else #define OPEN_MAX 128 -#endif #else #include <sys/param.h> #ifdef __GNU__ #define OPEN_MAX (sysconf(_SC_OPEN_MAX)) #endif /*__GNU__*/ #ifndef OPEN_MAX +#ifdef SCO325 +#define OPEN_MAX (sysconf(_SC_OPEN_MAX)) +#else #if defined(NOFILE) && !defined(NOFILES_MAX) #define OPEN_MAX NOFILE #else @@ -94,8 +93,9 @@ in this Software without prior written authorization from The Open Group. #endif #endif #endif +#endif -#ifdef __GNU__ +#if defined(__GNU__) || defined(SCO325) #define MAXSOCKS 128 #else /*__GNU__*/ #if OPEN_MAX <= 128 /* 128 is value of MAXCLIENTS */ |