Obfuscate RCS ID matching so that CVS doesn't expand it.
[netbsd-mini2440.git] / dist / ntp / sntp / kludges.h
blob09a81dce3e4f94076c2abc58a7f52f771a663834
1 /* $NetBSD$ */
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. */
14 #ifndef EXIT_SUCCESS
15 #define EXIT_SUCCESS 0
16 #define EXIT_FAILURE 1
17 #endif
21 /* stdio.h is also broken under SunOS4. */
23 #ifndef SEEK_SET
24 #define SEEK_SET 0
25 #endif
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
34 #endif
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
43 #endif
47 /* O_NONBLOCK doesn't work under Ultrix 4.3. This needs a flag setting in
48 Makefile. */
50 #ifdef NONBLOCK_BROKEN
51 #ifdef O_NONBLOCK
52 #undef O_NONBLOCK
53 #endif
54 #define O_NONBLOCK O_NDELAY
55 #endif
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. */
62 #ifndef EWOULDBLOCK
63 #define EWOULDBLOCK EAGAIN
64 #endif