#include /* for namser.h */ #include /* for BYTE_ORDER */ #include /* for execv */ #include /* for unix.h */ #include /* for unix.h */ #include #include /* for select */ #if !defined(__GNUC__) #include /* for sem_t */ #endif #define USE_POSIX_TIME #define HAS_TEST_AND_SET #define HAVE_STRING_H #undef HAVE_GETRUSAGE #define strncasecmp strnicmp #ifndef NAN #ifndef __nan_bytes #define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } #endif /* __nan_bytes */ extern unsigned char __nan[8]; #define NAN (*(const double *) __nan) #endif /* NAN */ typedef u_short ushort; #if defined(__GNUC__) typedef unsigned char slock_t; #else typedef sem_t slock_t; #endif extern int isnan(double dsrc); extern double rint(double x); extern char *crypt(const char *, const char *); extern long random(void); extern void srandom(unsigned int seed);