diff options
| author | Karl Heuer | 1995-01-23 22:20:24 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-01-23 22:20:24 +0000 |
| commit | a7cde15c6437583166ae15f5696ed816f71e4ea3 (patch) | |
| tree | ead2da084102eec2bc726750061ed336519f1f18 /src | |
| parent | 66a11df92592fa1380ed957ba2296c308c7dc452 (diff) | |
| download | emacs-a7cde15c6437583166ae15f5696ed816f71e4ea3.tar.gz emacs-a7cde15c6437583166ae15f5696ed816f71e4ea3.zip | |
[__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__.
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/isc3-0.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/s/isc3-0.h b/src/s/isc3-0.h index 43d4f92a08b..737ce3c3297 100644 --- a/src/s/isc3-0.h +++ b/src/s/isc3-0.h | |||
| @@ -8,6 +8,14 @@ | |||
| 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 |
| @@ -17,20 +25,21 @@ | |||
| 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 | ||