3 /* Copyright (C) 1996, 2000 N.M. Maclaren
4 Copyright (C) 1996, 2000 The University of Cambridge
6 This includes all of the kludges necessary for certain broken systems. It is
7 called after all other headers. All of the modules set a flag to say which
8 they are, but none of the current kludges critically need that information. */
12 /* stdlib.h is broken under SunOS4. */
15 #define EXIT_SUCCESS 0
16 #define EXIT_FAILURE 1
21 /* stdio.h is also broken under SunOS4. */
29 /* netinet/in.h sometimes omits INADDR_LOOPBACK, or makes it conditional on
30 peculiar preprocessor symbols. */
32 #ifndef INADDR_LOOPBACK
33 #define INADDR_LOOPBACK 0x7f000001ul
38 /* HP-UX up to version 9.x does not have adjtime, so make it fail. This needs
39 a flag setting in Makefile. */
41 #ifdef ADJTIME_MISSING
42 #define adjtime(x,y) 1
47 /* O_NONBLOCK doesn't work under Ultrix 4.3. This needs a flag setting in
50 #ifdef NONBLOCK_BROKEN
54 #define O_NONBLOCK O_NDELAY
59 /* Some older systems use EWOULDBLOCK rather than EAGAIN, but don't assume that
60 it is defined. The differences are not relevant to this program. */
63 #define EWOULDBLOCK EAGAIN