]> code.delx.au - gnu-emacs/blob - src/s/sunos4-1.h
(LIBS_SYSTEM): Define this.
[gnu-emacs] / src / s / sunos4-1.h
1 #include "sunos4-0.h"
2
3 /* 4.1.1 makes these system calls interruptible. */
4
5 #define read sys_read
6 #define write sys_write
7 #define open sys_open
8 #define close sys_close
9
10 #define INTERRUPTIBLE_OPEN
11 #define INTERRUPTIBLE_CLOSE
12 #define INTERRUPTIBLE_IO
13
14 /* Cause the compilation of oldxmenu to use the right -I option. */
15 #define OLDXMENU_OPTIONS CFLAGS=C_SWITCH_SYSTEM
16
17 #if 0 /* This isn't right. Apparently some sites do have -lresolv
18 but don't use that. On those systems, the code below loses.
19 There's no way to win automatically unless someone
20 figures out a way of determining automatically which way is right
21 on any given system. */
22 /* Some systems do not run the Network Information Service, but have
23 modified the shared C library to include resolver support without
24 also changing the C archive library (/usr/lib/libc.a). If we
25 detect the presence of libresolv.a, use -lresolv to supplement libc.a.
26
27 We used to have #ifdef HAVE_GETHOSTNAME is to prevent configure from
28 setting libsrc_libs to -lresolv in lib-src/Makefile. But nowadays
29 configure is smarter about computing libsrc_libs, and would not
30 be fooled. Anyway, why not use -lresolv in lib-src? */
31 /* #ifdef HAVE_GETHOSTNAME */
32 #ifdef HAVE_LIBRESOLV
33 #define LIBS_SYSTEM -lresolv
34 #endif
35 /* #endif */
36 #endif
37
38 #if 0 /* Not necessary, since SYSTEM_MALLOC is defined in sunos4-0.h. */
39 /* Tell GNU malloc to compensate for a bug in localtime. */
40 #define SUNOS_LOCALTIME_BUG
41 #endif
42
43 /* Define dlopen, dlclose, dlsym. */
44 #define USE_DL_STUBS