]> code.delx.au - gnu-emacs/blob - src/s/sunos4-1.h
(LIBS_SYSTEM): Test HAVE_LIBRESOLV, not HAVE_RES_INIT.
[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 /* Some systems do not run the Network Information Service, but have
18 modified the shared C library to include resolver support without
19 also changing the C archive library (/usr/lib/libc.a). If we
20 detect the presence of libresolv.a, use -lresolv to supplement libc.a.
21
22 We used to have #ifdef HAVE_GETHOSTNAME is to prevent configure from
23 setting libsrc_libs to -lresolv in lib-src/Makefile. But nowadays
24 configure is smarter about computing libsrc_libs, and would not
25 be fooled. Anyway, why not use -lresolv in lib-src? */
26 /* #ifdef HAVE_GETHOSTNAME */
27 #ifdef HAVE_LIBRESOLV
28 #define LIBS_SYSTEM -lresolv
29 #endif
30 /* #endif */
31
32 #if 0 /* Not necessary, since SYSTEM_MALLOC is defined in sunos4-0.h. */
33 /* Tell GNU malloc to compensate for a bug in localtime. */
34 #define SUNOS_LOCALTIME_BUG
35 #endif