Mercurial > emacs
comparison src/s/isc3-0.h @ 10524:92d4e8fc0942
[__GNUC__] (POSIX_SIGNALS): #define this.
[__GNUC__] (sigsetmask, HAVE_SYSV_SIGPAUSE): #undef these.
(LIBX11_SYSTEM): Don't use -lc; loading this before -lcposix gives us the
wrong signal functions.
(C_SWITCH_SYSTEM): Add _XOPEN_SOURCE.
(EXTRA_INITIALIZE): Make conditional on __GNUC__.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 23 Jan 1995 22:20:24 +0000 |
parents | 7a0412e09bdb |
children | 6c454c04a027 |
comparison
equal
deleted
inserted
replaced
10523:2303cb9ce523 | 10524:92d4e8fc0942 |
---|---|
6 /* #define HAVE_SOCKETS */ | 6 /* #define HAVE_SOCKETS */ |
7 | 7 |
8 /* This appears on 3.0, presumably as part of what SunSoft call X2. */ | 8 /* This appears on 3.0, presumably as part of what SunSoft call X2. */ |
9 #undef NO_X_DESTROY_DATABASE | 9 #undef NO_X_DESTROY_DATABASE |
10 | 10 |
11 #ifdef __GNUC__ /* Currently we use -lcposix only with gcc */ | |
12 #define POSIX_SIGNALS | |
13 | |
14 /* We don't need the definition from usg5-3.h with POSIX_SIGNALS. */ | |
15 #undef sigsetmask | |
16 #undef HAVE_SYSV_SIGPAUSE | |
17 #endif | |
18 | |
11 /* People say that using -traditional causes lossage with `const', | 19 /* People say that using -traditional causes lossage with `const', |
12 so we might as well try getting rid of -traditional. */ | 20 so we might as well try getting rid of -traditional. */ |
13 #undef C_SWITCH_SYSTEM | 21 #undef C_SWITCH_SYSTEM |
14 | 22 |
15 /* We indirectly #include s/usg5-3.h, which says to use libX11_s and | 23 /* We indirectly #include s/usg5-3.h, which says to use libX11_s and |
16 libc_s. Martin Tomes <mt00@controls.eurotherm.co.uk> says that ISC | 24 libc_s. Martin Tomes <mt00@controls.eurotherm.co.uk> says that ISC |
17 has no libX11_s, and that linking with libc_s causes sbrk not to work. */ | 25 has no libX11_s, and that linking with libc_s causes sbrk not to work. */ |
18 #undef LIB_X11_LIB | 26 #undef LIB_X11_LIB |
19 #undef LIBX11_SYSTEM | 27 #undef LIBX11_SYSTEM |
20 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc | 28 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s |
21 | 29 |
22 /* TIOCGWINSZ isn't broken; you just have to know where to find it. */ | 30 /* TIOCGWINSZ isn't broken; you just have to know where to find it. */ |
23 #undef BROKEN_TIOCGWINSZ | 31 #undef BROKEN_TIOCGWINSZ |
24 #define NEED_SIOCTL | 32 #define NEED_SIOCTL |
25 | 33 |
26 /* This does no harm, and is necessary for some ANSI compilers. */ | 34 /* We need either _XOPEN_SOURCE or _POSIX_SOURCE to import the posix |
27 #define C_SWITCH_SYSTEM -D_SYSV3 | 35 signal symbols; might as well use _XOPEN_SOURCE. Defining _SYSV3 |
36 ensures that we don't lose the traditional symbols as a side effect | |
37 from this or __STDC__ being defined. */ | |
38 #define C_SWITCH_SYSTEM -D_XOPEN_SOURCE -D_SYSV3 | |
28 | 39 |
40 #ifdef __GNUC__ /* Currently we use -lcposix only with gcc */ | |
29 /* This works around a bug in ISC 4.0 and 3.0; it fails | 41 /* This works around a bug in ISC 4.0 and 3.0; it fails |
30 to clear the "POSIX process" flag on an exec. | 42 to clear the "POSIX process" flag on an exec. |
31 It won't be needed for 4.1. */ | 43 It won't be needed for 4.1. */ |
32 /* neg@brooktrout.com reported that he did not have this function | |
33 on ISC 3.0.1. I don't know who to believe or what to do, | |
34 so I am leaving it alone until someone tells me | |
35 precisely when this function is needed -- rms. */ | |
36 #define EXTRA_INITIALIZE __setostype (0) | 44 #define EXTRA_INITIALIZE __setostype (0) |
45 #endif |