aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.in7
-rw-r--r--src/mem-limits.h15
-rw-r--r--src/process.c2
-rw-r--r--src/s/template.h12
-rw-r--r--src/systty.h2
-rw-r--r--src/unexec.c2
6 files changed, 25 insertions, 15 deletions
diff --git a/src/config.in b/src/config.in
index e479029a70f..0cd0b54dd94 100644
--- a/src/config.in
+++ b/src/config.in
@@ -183,8 +183,11 @@ and this notice must be preserved on all copies. */
183 183
184/* joe@zircon.uucp says that in order to use XFree386, you have to 184/* joe@zircon.uucp says that in order to use XFree386, you have to
185 link against -lXbsd, which insists on defining the random 185 link against -lXbsd, which insists on defining the random
186 function. */ 186 function.
187#ifdef HAVE_XFREE386 187 faith@cs.unc.edu says this is bogus for Linux and several other OS's.
188 Eventually, we should have autoconf test for this. Anyone want to
189 submit a patch? */
190#if defined (HAVE_XFREE386) && !defined (LINUX)
188#define LIBX11_SYSTEM -lXbsd 191#define LIBX11_SYSTEM -lXbsd
189#define HAVE_RANDOM 192#define HAVE_RANDOM
190#endif 193#endif
diff --git a/src/mem-limits.h b/src/mem-limits.h
index 06c8e1f5dd0..e2df73ee8d0 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -77,13 +77,20 @@ static void
77get_lim_data () 77get_lim_data ()
78{ 78{
79 extern long ulimit (); 79 extern long ulimit ();
80 80
81#ifdef ULIMIT_BREAK_VALUE 81 lim_data = -1;
82 lim_data = ULIMIT_BREAK_VALUE; 82
83#else 83 /* Use the ulimit call, if we seem to have it. */
84#if !defined (ULIMIT_BREAK_VALUE) || defined (LINUX)
84 lim_data = ulimit (3, 0); 85 lim_data = ulimit (3, 0);
85#endif 86#endif
86 87
88 /* If that didn't work, just use the macro's value. */
89#ifdef ULIMIT_BREAK_VALUE
90 if (lim_data == -1)
91 lim_data = ULIMIT_BREAK_VALUE;
92#endif
93
87 lim_data -= (long) data_space_start; 94 lim_data -= (long) data_space_start;
88} 95}
89 96
diff --git a/src/process.c b/src/process.c
index 84a4dbd0c7e..2b2fc8304dc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -110,7 +110,7 @@ static Lisp_Object stream_process;
110 110
111#ifndef VMS 111#ifndef VMS
112#ifndef WAITTYPE 112#ifndef WAITTYPE
113#if !defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER) 113#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX)
114#define WAITTYPE int 114#define WAITTYPE int
115#define WIFSTOPPED(w) ((w&0377) == 0177) 115#define WIFSTOPPED(w) ((w&0377) == 0177)
116#define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) 116#define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0)
diff --git a/src/s/template.h b/src/s/template.h
index b7abe09e449..6460deab05b 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -79,16 +79,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
79/* 79/*
80 * Define HAVE_TERMIOS if the system provides POSIX-style 80 * Define HAVE_TERMIOS if the system provides POSIX-style
81 * functions and macros for terminal control. 81 * functions and macros for terminal control.
82 */ 82 *
83
84#define HAVE_TERMIOS
85
86/*
87 * Define HAVE_TERMIO if the system provides sysV-style ioctls 83 * Define HAVE_TERMIO if the system provides sysV-style ioctls
88 * for terminal control. 84 * for terminal control.
85 *
86 * Do not define both. HAVE_TERMIOS is prefered, if it is
87 * supported on your system.
89 */ 88 */
90 89
91#define HAVE_TERMIO 90#define HAVE_TERMIOS
91/* #define HAVE_TERMIO */
92 92
93/* 93/*
94 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. 94 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
diff --git a/src/systty.h b/src/systty.h
index a7c682cf7c1..897a3c28e93 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -218,7 +218,7 @@ static struct sensemode {
218#ifdef HAVE_TERMIOS 218#ifdef HAVE_TERMIOS
219 219
220#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd))) 220#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd)))
221#define EMACS_SET_TTY_PGRP(fd, pgid) (*(pgid) = tcsetpgrp ((fd), *(pgid))) 221#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid)))
222 222
223#else 223#else
224#ifdef TIOCSPGRP 224#ifdef TIOCSPGRP
diff --git a/src/unexec.c b/src/unexec.c
index 2fb289d8fba..e8906fe68ad 100644
--- a/src/unexec.c
+++ b/src/unexec.c
@@ -235,7 +235,7 @@ static EXEC_HDR_TYPE hdr, ohdr;
235 235
236#else /* not HPUX */ 236#else /* not HPUX */
237 237
238#if defined (USG) && !defined (IBMAIX) && !defined (IRIS) && !defined (COFF_ENCAPSULATE) 238#if defined (USG) && !defined (IBMAIX) && !defined (IRIS) && !defined (COFF_ENCAPSULATE) && !defined (LINUX)
239static struct bhdr hdr, ohdr; 239static struct bhdr hdr, ohdr;
240#define a_magic fmagic 240#define a_magic fmagic
241#define a_text tsize 241#define a_text tsize