aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-20 13:03:56 +0000
committerDan Nicolaescu2008-07-20 13:03:56 +0000
commit89f1e540e1bbee8224fa3e5fddbc92cc44d657c1 (patch)
tree5e6629717aac76f425718f331b75e9b9814aba5d
parent697baba53198bd8c6ab0e063b1941aac44e751bc (diff)
downloademacs-89f1e540e1bbee8224fa3e5fddbc92cc44d657c1.tar.gz
emacs-89f1e540e1bbee8224fa3e5fddbc92cc44d657c1.zip
* s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
added not supported anymore. * s/usg5-4-2.h (LIBS_SYSTEM): * s/sol2.h (LIBS_SYSTEM): Do not undefine. * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF): * s/lynxos.h (GETPGRP_NO_ARG): * s/hpux10-20.h (NO_SIOCTL_H): * s/gnu.h (GETPGRP_NO_ARG): * s/gnu-linux.h (NO_SIOCTL_H): * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF): * s/cygwin.h (GETPGRP_NO_ARG): * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused. (C_DEBUG_SWITCH): Remove duplicate definition. * m/ibms390.h: Remove boilerplate comments. * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4. * process.c (HAVE_SERIAL): Consolidate ifdefs. (wait_reading_process_output): Remove code for SunOS, platform not supported anymore. Use SOLARIS2 instead of sun.
-rw-r--r--admin/CPP-DEFINES9
-rw-r--r--src/ChangeLog26
-rw-r--r--src/m/ibms390.h31
-rw-r--r--src/process.c19
-rw-r--r--src/s/cygwin.h1
-rw-r--r--src/s/freebsd.h4
-rw-r--r--src/s/gnu-linux.h4
-rw-r--r--src/s/gnu.h1
-rw-r--r--src/s/hpux10-20.h4
-rw-r--r--src/s/irix6-5.h23
-rw-r--r--src/s/lynxos.h1
-rw-r--r--src/s/netbsd.h6
-rw-r--r--src/s/sol2.h1
-rw-r--r--src/s/usg5-4-2.h1
-rw-r--r--src/s/usg5-4.h4
-rw-r--r--src/sysdep.c2
16 files changed, 28 insertions, 109 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index 25fbc598ddc..a76970639ce 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -53,7 +53,6 @@ SYSTEM_MALLOC Use the system library's malloc.
53 53
54 54
55ADDR_CORRECT 55ADDR_CORRECT
56ADJUST_EXEC_HEADER
57AIX 56AIX
58AMPERSAND_FULL_NAME 57AMPERSAND_FULL_NAME
59A_TEXT_OFFSET 58A_TEXT_OFFSET
@@ -116,7 +115,6 @@ GC_LISP_OBJECT_ALIGNMENT
116GC_MARK_SECONDARY_STACK 115GC_MARK_SECONDARY_STACK
117GC_MARK_STACK 116GC_MARK_STACK
118GC_SETJMP_WORKS 117GC_SETJMP_WORKS
119GETPGRP_NO_ARG
120GMALLOC_INHIBIT_VALLOC 118GMALLOC_INHIBIT_VALLOC
121GNU_LIBRARY_PENDING_OUTPUT_COUNT 119GNU_LIBRARY_PENDING_OUTPUT_COUNT
122GNU_LINUX 120GNU_LINUX
@@ -225,7 +223,6 @@ LD_SWITCH_SYSTEM_1
225LD_SWITCH_SYSTEM_TEMACS 223LD_SWITCH_SYSTEM_TEMACS
226LD_SWITCH_SYSTEM_tmp 224LD_SWITCH_SYSTEM_tmp
227LD_SWITCH_X_DEFAULT 225LD_SWITCH_X_DEFAULT
228LIBS_CARBON
229LIBS_DEBUG 226LIBS_DEBUG
230LIBS_IMAGE 227LIBS_IMAGE
231LIBS_MACHINE 228LIBS_MACHINE
@@ -273,15 +270,12 @@ NO_HYPHENS_IN_FILENAMES
273NO_MATHERR 270NO_MATHERR
274NO_REMAP 271NO_REMAP
275NO_SHARED_LIBS 272NO_SHARED_LIBS
276NO_SIOCTL_H
277NO_SOCK_SIGIO 273NO_SOCK_SIGIO
278NO_TERMIO 274NO_TERMIO
279NSIG 275NSIG
280NSIG_MINIMUM 276NSIG_MINIMUM
281NULL 277NULL
282NULL_DEVICE 278NULL_DEVICE
283N_BADMAG
284N_TRELOFF
285N_TXTOFF 279N_TXTOFF
286ORDINARY_LINK 280ORDINARY_LINK
287OTHER_FILES 281OTHER_FILES
@@ -296,7 +290,6 @@ O_TRUNC
296O_WRONLY 290O_WRONLY
297PAGESIZE 291PAGESIZE
298PENDING_OUTPUT_COUNT 292PENDING_OUTPUT_COUNT
299PNTR_COMPARISON_TYPE
300POSIX 293POSIX
301POSIX_SIGNALS 294POSIX_SIGNALS
302PREFER_VSUSP 295PREFER_VSUSP
@@ -305,7 +298,6 @@ PTY_NAME_SPRINTF
305PTY_OPEN 298PTY_OPEN
306PTY_TTY_NAME_SPRINTF 299PTY_TTY_NAME_SPRINTF
307PURESIZE 300PURESIZE
308PURE_SEG_BITS
309RUN_TIME_REMAP 301RUN_TIME_REMAP
310SA_RESTART 302SA_RESTART
311SECTION_ALIGNMENT 303SECTION_ALIGNMENT
@@ -331,7 +323,6 @@ SYMS_SYSTEM
331SYSTEM_PURESIZE_EXTRA 323SYSTEM_PURESIZE_EXTRA
332SYSTEM_TYPE 324SYSTEM_TYPE
333SYSV_SYSTEM_DIR 325SYSV_SYSTEM_DIR
334S_IFLNK
335Srandom 326Srandom
336TAB3 327TAB3
337TABDLY 328TABDLY
diff --git a/src/ChangeLog b/src/ChangeLog
index b1f1d027ef8..baa61d86c01 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,29 @@
12008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4 added not supported anymore.
5
6 * s/usg5-4-2.h (LIBS_SYSTEM):
7 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8
9 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10 * s/lynxos.h (GETPGRP_NO_ARG):
11 * s/hpux10-20.h (NO_SIOCTL_H):
12 * s/gnu.h (GETPGRP_NO_ARG):
13 * s/gnu-linux.h (NO_SIOCTL_H):
14 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15 * s/cygwin.h (GETPGRP_NO_ARG):
16 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17 (C_DEBUG_SWITCH): Remove duplicate definition.
18
19 * m/ibms390.h: Remove boilerplate comments.
20
21 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
22
23 * process.c (HAVE_SERIAL): Consolidate ifdefs.
24 (wait_reading_process_output): Remove code for SunOS, platform not
25 supported anymore. Use SOLARIS2 instead of sun.
26
12008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> 272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2 28
3 * font.c (font_open_by_name): Under NS, default lface height to zero. 29 * font.c (font_open_by_name): Under NS, default lface height to zero.
diff --git a/src/m/ibms390.h b/src/m/ibms390.h
index c45cc39f2d8..b1de5ef7f17 100644
--- a/src/m/ibms390.h
+++ b/src/m/ibms390.h
@@ -57,36 +57,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
57 57
58#define VIRT_ADDR_VARIES 58#define VIRT_ADDR_VARIES
59 59
60/* Define NO_REMAP if memory segmentation makes it not work well
61 to change the boundary between the text section and data section
62 when Emacs is dumped. If you define this, the preloaded Lisp
63 code will not be sharable; but that's better than failing completely. */
64
65/*#define NO_REMAP */
66
67/* Some really obscure 4.2-based systems (like Sequent DYNIX)
68 * do not support asynchronous I/O (using SIGIO) on sockets,
69 * even though it works fine on tty's. If you have one of
70 * these systems, define the following, and then use it in
71 * config.h (or elsewhere) to decide when (not) to use SIGIO.
72 *
73 * You'd think this would go in an operating-system description file,
74 * but since it only occurs on some, but not all, BSD systems, the
75 * reasonable place to select for it is in the machine description
76 * file.
77 */
78
79/*#define NO_SOCK_SIGIO*/
80
81
82/* After adding support for a new system, modify the large case
83 statement in the `configure' script to recognize reasonable
84 configuration names, and add a description of the system to
85 `etc/MACHINES'.
86
87 If you've just fixed a problem in an existing configuration file,
88 you should also check `etc/MACHINES' to make sure its descriptions
89 of known problems in that configuration should be updated. */
90
91/* arch-tag: d8a0ffa4-a8f0-4736-90d3-7fd7b21b8314 60/* arch-tag: d8a0ffa4-a8f0-4736-90d3-7fd7b21b8314
92 (do not change this comment) */ 61 (do not change this comment) */
diff --git a/src/process.c b/src/process.c
index 0878051f733..e028ab93503 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2785,9 +2785,7 @@ usage: (serial-process-configure &rest ARGS) */)
2785 UNGCPRO; 2785 UNGCPRO;
2786 return Qnil; 2786 return Qnil;
2787} 2787}
2788#endif /* HAVE_SERIAL */
2789 2788
2790#ifdef HAVE_SERIAL
2791/* Used by make-serial-process to recover from errors. */ 2789/* Used by make-serial-process to recover from errors. */
2792Lisp_Object make_serial_process_unwind (Lisp_Object proc) 2790Lisp_Object make_serial_process_unwind (Lisp_Object proc)
2793{ 2791{
@@ -2796,9 +2794,7 @@ Lisp_Object make_serial_process_unwind (Lisp_Object proc)
2796 remove_process (proc); 2794 remove_process (proc);
2797 return Qnil; 2795 return Qnil;
2798} 2796}
2799#endif /* HAVE_SERIAL */
2800 2797
2801#ifdef HAVE_SERIAL
2802DEFUN ("make-serial-process", Fmake_serial_process, Smake_serial_process, 2798DEFUN ("make-serial-process", Fmake_serial_process, Smake_serial_process,
2803 0, MANY, 0, 2799 0, MANY, 0,
2804 doc: /* Create and return a serial port process. 2800 doc: /* Create and return a serial port process.
@@ -4912,19 +4908,6 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
4912 IF_NON_BLOCKING_CONNECT (check_connect = 0); 4908 IF_NON_BLOCKING_CONNECT (check_connect = 0);
4913 } 4909 }
4914 4910
4915#if defined(sun) && !defined(USG5_4)
4916 if (nfds > 0 && keyboard_bit_set (&Available)
4917 && interrupt_input)
4918 /* System sometimes fails to deliver SIGIO.
4919
4920 David J. Mackenzie says that Emacs doesn't compile under
4921 Solaris if this code is enabled, thus the USG5_4 in the CPP
4922 conditional. "I haven't noticed any ill effects so far.
4923 If you find a Solaris expert somewhere, they might know
4924 better." */
4925 kill (getpid (), SIGIO);
4926#endif
4927
4928#if 0 /* When polling is used, interrupt_input is 0, 4911#if 0 /* When polling is used, interrupt_input is 0,
4929 so get_input_pending should read the input. 4912 so get_input_pending should read the input.
4930 So this should not be needed. */ 4913 So this should not be needed. */
@@ -7704,7 +7687,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
7704 else 7687 else
7705 error ("select error: %s", emacs_strerror (xerrno)); 7688 error ("select error: %s", emacs_strerror (xerrno));
7706 } 7689 }
7707#ifdef sun 7690#ifdef SOLARIS2
7708 else if (nfds > 0 && (waitchannels & 1) && interrupt_input) 7691 else if (nfds > 0 && (waitchannels & 1) && interrupt_input)
7709 /* System sometimes fails to deliver SIGIO. */ 7692 /* System sometimes fails to deliver SIGIO. */
7710 kill (getpid (), SIGIO); 7693 kill (getpid (), SIGIO);
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index b1172e622b3..fd13112730c 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -110,7 +110,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
110#define CYGWIN 1 110#define CYGWIN 1
111 111
112#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 112#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
113#define GETPGRP_NO_ARG 1
114#define SYSV_SYSTEM_DIR 1 113#define SYSV_SYSTEM_DIR 1
115#define UNEXEC unexcw.o 114#define UNEXEC unexcw.o
116#define POSIX_SIGNALS 1 115#define POSIX_SIGNALS 1
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 79ecaeba0d3..ca183b57ff1 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -65,7 +65,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
65 65
66/* freebsd has POSIX-style pgrp behavior. */ 66/* freebsd has POSIX-style pgrp behavior. */
67#undef BSD_PGRPS 67#undef BSD_PGRPS
68#define GETPGRP_NO_ARG
69 68
70#ifdef __ELF__ 69#ifdef __ELF__
71 70
@@ -90,9 +89,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
90#define RUN_TIME_REMAP 89#define RUN_TIME_REMAP
91#define LIB_GCC -lgcc 90#define LIB_GCC -lgcc
92 91
93#ifndef N_TRELOFF
94#define N_TRELOFF(x) N_RELOFF(x)
95#endif
96#else /* NO_SHARED_LIBS */ 92#else /* NO_SHARED_LIBS */
97#ifdef __FreeBSD__ /* shared libs are available, but the user prefers 93#ifdef __FreeBSD__ /* shared libs are available, but the user prefers
98 not to use them. */ 94 not to use them. */
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index b21a84b5e34..7501cd602f3 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -190,10 +190,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
190#define INTERRUPT_INPUT 190#define INTERRUPT_INPUT
191#endif 191#endif
192 192
193/* This is needed for sysdep.c */
194
195#define NO_SIOCTL_H /* don't have sioctl.h */
196
197#define SYSV_SYSTEM_DIR /* use dirent.h */ 193#define SYSV_SYSTEM_DIR /* use dirent.h */
198 194
199#define POSIX /* affects getpagesize.h and systty.h */ 195#define POSIX /* affects getpagesize.h and systty.h */
diff --git a/src/s/gnu.h b/src/s/gnu.h
index 8192ea1cbf2..931d7db2ffd 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -53,7 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53 53
54/* GNU has POSIX-style pgrp behavior. */ 54/* GNU has POSIX-style pgrp behavior. */
55#undef BSD_PGRPS 55#undef BSD_PGRPS
56#define GETPGRP_NO_ARG
57 56
58/* Use mmap directly for allocating larger buffers. */ 57/* Use mmap directly for allocating larger buffers. */
59#ifdef DOUG_LEA_MALLOC 58#ifdef DOUG_LEA_MALLOC
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index 45242c6862b..201f4f4ca32 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -113,10 +113,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
113 conflicting -a. */ 113 conflicting -a. */
114#define LD_SWITCH_SYSTEM_TEMACS 114#define LD_SWITCH_SYSTEM_TEMACS
115 115
116/* Some hpux 8 machines seem to have TIOCGWINSZ,
117 and none have sioctl.h, so might as well define this. */
118#define NO_SIOCTL_H
119
120#ifndef HAVE_LIBXMU 116#ifndef HAVE_LIBXMU
121/* HP-UX doesn't supply Xmu. */ 117/* HP-UX doesn't supply Xmu. */
122#define LIBXMU 118#define LIBXMU
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 1ccaf432dac..0a7e2c70c6f 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -28,10 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 28
29#define SETPGRP_RELEASES_CTTY 29#define SETPGRP_RELEASES_CTTY
30 30
31#ifdef LIBS_SYSTEM
32#undef LIBS_SYSTEM
33#endif
34
35#ifdef LIB_STANDARD 31#ifdef LIB_STANDARD
36#undef LIB_STANDARD 32#undef LIB_STANDARD
37#endif 33#endif
@@ -49,13 +45,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
49/* Make process_send_signal work by "typing" a signal character on the pty. */ 45/* Make process_send_signal work by "typing" a signal character on the pty. */
50#define SIGNALS_VIA_CHARACTERS 46#define SIGNALS_VIA_CHARACTERS
51 47
52/* SGI has all the fancy wait stuff, but we can't include sys/wait.h
53 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
54 we'll just define WNOHANG right here.
55 (An implicit decl is good enough for wait3.) */
56
57/* #define WNOHANG 0x1 */
58
59/* No need to use sprintf to get the tty name--we get that from _getpty. */ 48/* No need to use sprintf to get the tty name--we get that from _getpty. */
60#ifdef PTY_TTY_NAME_SPRINTF 49#ifdef PTY_TTY_NAME_SPRINTF
61#undef PTY_TTY_NAME_SPRINTF 50#undef PTY_TTY_NAME_SPRINTF
@@ -95,9 +84,6 @@ char *_getpty();
95 throughout. */ 84 throughout. */
96#define POSIX_SIGNALS 85#define POSIX_SIGNALS
97 86
98/* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
99#define GETPGRP_NO_ARG
100
101/* Ulimit(UL_GMEMLIM) is busted... */ 87/* Ulimit(UL_GMEMLIM) is busted... */
102#define ULIMIT_BREAK_VALUE 0x14000000 88#define ULIMIT_BREAK_VALUE 0x14000000
103 89
@@ -111,14 +97,6 @@ char *_getpty();
111 97
112#define MAIL_USE_FLOCK 98#define MAIL_USE_FLOCK
113 99
114/* -g used not to work on Irix unless you used gas, and since gcc
115 warns if you use it, turn off the warning. */
116/* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
117 I'm not sure about Irix 5 -- fx */
118#ifdef __GNUC__
119#define C_DEBUG_SWITCH
120#endif
121
122#define NARROWPROTO 1 100#define NARROWPROTO 1
123 101
124#define USE_MMAP_FOR_BUFFERS 1 102#define USE_MMAP_FOR_BUFFERS 1
@@ -134,7 +112,6 @@ char *_getpty();
134/* The only supported 32-bit configuration of GCC under IRIX6.x produces 112/* The only supported 32-bit configuration of GCC under IRIX6.x produces
135 n32 MIPS ABI binaries and also supports -g. */ 113 n32 MIPS ABI binaries and also supports -g. */
136#ifdef __GNUC__ 114#ifdef __GNUC__
137#undef C_DEBUG_SWITCH
138#define C_DEBUG_SWITCH -g 115#define C_DEBUG_SWITCH -g
139#else 116#else
140/* Optimize, inaccurate debugging, increase limit on size of what's 117/* Optimize, inaccurate debugging, increase limit on size of what's
diff --git a/src/s/lynxos.h b/src/s/lynxos.h
index 745c65f4ca6..d28a4ee688e 100644
--- a/src/s/lynxos.h
+++ b/src/s/lynxos.h
@@ -34,7 +34,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34#define LDAV_SYMBOL "load_average" 34#define LDAV_SYMBOL "load_average"
35 35
36/* misc defines */ 36/* misc defines */
37#define GETPGRP_NO_ARG
38#define LNOFLSH 0 37#define LNOFLSH 0
39 38
40/* COFF related */ 39/* COFF related */
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 5a667e30d2d..2e0af41a2f6 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -58,8 +58,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
58/* Netbsd has POSIX-style pgrp behavior. */ 58/* Netbsd has POSIX-style pgrp behavior. */
59#undef BSD_PGRPS 59#undef BSD_PGRPS
60 60
61#define GETPGRP_NO_ARG
62
63#if !defined (NO_SHARED_LIBS) && ! defined (__ELF__) 61#if !defined (NO_SHARED_LIBS) && ! defined (__ELF__)
64/* These definitions should work for either dynamic or static linking, 62/* These definitions should work for either dynamic or static linking,
65 whichever is the default for `cc -nostdlib'. */ 63 whichever is the default for `cc -nostdlib'. */
@@ -68,10 +66,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
68#define UNEXEC unexsunos4.o 66#define UNEXEC unexsunos4.o
69#define RUN_TIME_REMAP 67#define RUN_TIME_REMAP
70 68
71/* Try to make this work for both 0.9 and >0.9. */
72#ifndef N_TRELOFF
73#define N_TRELOFF(x) N_RELOFF(x)
74#endif
75#endif /* not NO_SHARED_LIBS and not ELF */ 69#endif /* not NO_SHARED_LIBS and not ELF */
76 70
77#if !defined (NO_SHARED_LIBS) && defined (__ELF__) 71#if !defined (NO_SHARED_LIBS) && defined (__ELF__)
diff --git a/src/s/sol2.h b/src/s/sol2.h
index 1938fb6d865..bd6e1c9bdba 100644
--- a/src/s/sol2.h
+++ b/src/s/sol2.h
@@ -40,7 +40,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
40#define LD_SWITCH_SYSTEM `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` 40#define LD_SWITCH_SYSTEM `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
41#endif /* GCC */ 41#endif /* GCC */
42 42
43#undef LIBS_SYSTEM
44#define LIBS_SYSTEM -lsocket -lnsl -lkstat 43#define LIBS_SYSTEM -lsocket -lnsl -lkstat
45 44
46/* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root. 45/* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root.
diff --git a/src/s/usg5-4-2.h b/src/s/usg5-4-2.h
index c6ee7ac5d32..46b350d6db9 100644
--- a/src/s/usg5-4-2.h
+++ b/src/s/usg5-4-2.h
@@ -34,7 +34,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34#undef HAVE_SYSV_SIGPAUSE 34#undef HAVE_SYSV_SIGPAUSE
35 35
36/* Motif needs -lgen. */ 36/* Motif needs -lgen. */
37#undef LIBS_SYSTEM
38#define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen 37#define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen
39 38
40/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 39/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index 4c2a59cc27d..9639d3be24c 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -222,9 +222,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
222 So give it a try. */ 222 So give it a try. */
223#define HAVE_SOCKETS 223#define HAVE_SOCKETS
224 224
225/* Markus Weiand <weiand@khof.com> says this is needed for Motif on
226 SINIX. */
227#define LIBS_SYSTEM -lgen
228
229/* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6 225/* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6
230 (do not change this comment) */ 226 (do not change this comment) */
diff --git a/src/sysdep.c b/src/sysdep.c
index 1721172e0d6..b19ed384754 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -3295,7 +3295,7 @@ closedir (dirp)
3295 /* Some systems (like Solaris) allocate the buffer and the DIR all 3295 /* Some systems (like Solaris) allocate the buffer and the DIR all
3296 in one block. Why in the world are we freeing this ourselves 3296 in one block. Why in the world are we freeing this ourselves
3297 anyway? */ 3297 anyway? */
3298#if ! (defined (sun) && defined (USG5_4)) 3298#if ! defined (SOLARIS2)
3299 xfree ((char *) dirp->dd_buf); /* directory block defined in <dirent.h> */ 3299 xfree ((char *) dirp->dd_buf); /* directory block defined in <dirent.h> */
3300#endif 3300#endif
3301 xfree ((char *) dirp); 3301 xfree ((char *) dirp);