1 /* Copyright (C) 1996, 2000 N.M. Maclaren
2 Copyright (C) 1996, 2000 The University of Cambridge
4 This includes all of the kludges necessary for certain broken systems. It is
5 called after all other headers. All of the modules set a flag to say which
6 they are, but none of the current kludges critically need that information. */
10 /* stdlib.h is broken under SunOS4. */
13 #define EXIT_SUCCESS 0
14 #define EXIT_FAILURE 1
19 /* stdio.h is also broken under SunOS4. */
27 /* netinet/in.h sometimes omits INADDR_LOOPBACK, or makes it conditional on
28 peculiar preprocessor symbols. */
30 #ifndef INADDR_LOOPBACK
31 #define INADDR_LOOPBACK 0x7f000001ul
36 /* HP-UX up to version 9.x does not have adjtime, so make it fail. This needs
37 a flag setting in Makefile. */
39 #ifdef ADJTIME_MISSING
40 #define adjtime(x,y) 1
45 /* O_NONBLOCK doesn't work under Ultrix 4.3. This needs a flag setting in
48 #ifdef NONBLOCK_BROKEN
52 #define O_NONBLOCK O_NDELAY
57 /* Some older systems use EWOULDBLOCK rather than EAGAIN, but don't assume that
58 it is defined. The differences are not relevant to this program. */
61 #define EWOULDBLOCK EAGAIN