aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-03-31 13:39:03 -0700
committerDan Nicolaescu2010-03-31 13:39:03 -0700
commit1d29df5994318178a5505946ec1c4c3c06a25c93 (patch)
tree015a9dfe5a40ab20b24a8eee34423cc3babe4a87 /src
parent1cd095c67cd41cf73cf5a382c261d16b9ec2e25e (diff)
downloademacs-1d29df5994318178a5505946ec1c4c3c06a25c93.tar.gz
emacs-1d29df5994318178a5505946ec1c4c3c06a25c93.zip
Clean up BSD_SYSTEM use.
* xterm.c: * process.c: * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard for including <sys/ioctl.h>. * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this code is only used for MSDOS.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/emacs.c2
-rw-r--r--src/process.c4
-rw-r--r--src/sysdep.c4
-rw-r--r--src/xterm.c4
5 files changed, 15 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e223ae0f696..8c83866350d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Clean up BSD_SYSTEM use.
4 * xterm.c:
5 * process.c:
6 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
7 for including <sys/ioctl.h>.
8 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9 code is only used for MSDOS.
10
12010-03-31 Juri Linkov <juri@jurta.org> 112010-03-31 Juri Linkov <juri@jurta.org>
2 12
3 * image.c: Add `Qextension_data'. 13 * image.c: Add `Qextension_data'.
diff --git a/src/emacs.c b/src/emacs.c
index 60aa14e2b78..6327fd8a7d3 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -32,7 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
32#include <unistd.h> 32#include <unistd.h>
33#endif 33#endif
34 34
35#ifdef BSD_SYSTEM 35#ifdef HAVE_SYS_IOCTL_H
36#include <sys/ioctl.h> 36#include <sys/ioctl.h>
37#endif 37#endif
38 38
diff --git a/src/process.c b/src/process.c
index 4f103752296..43fa78c7bd4 100644
--- a/src/process.c
+++ b/src/process.c
@@ -69,12 +69,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
69#endif 69#endif
70#endif /* HAVE_SOCKETS */ 70#endif /* HAVE_SOCKETS */
71 71
72#if defined(BSD_SYSTEM) 72#if defined(HAVE_SYS_IOCTL_H)
73#include <sys/ioctl.h> 73#include <sys/ioctl.h>
74#if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) 74#if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5)
75#include <fcntl.h> 75#include <fcntl.h>
76#endif /* HAVE_PTYS and no O_NDELAY */ 76#endif /* HAVE_PTYS and no O_NDELAY */
77#endif /* BSD_SYSTEM */ 77#endif /* HAVE_SYS_IOCTL_H */
78 78
79#ifdef NEED_BSDTTY 79#ifdef NEED_BSDTTY
80#include <bsdtty.h> 80#include <bsdtty.h>
diff --git a/src/sysdep.c b/src/sysdep.c
index 73209b03c08..e23f52d92e5 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -384,11 +384,7 @@ set_exclusive_use (fd)
384 384
385wait_without_blocking () 385wait_without_blocking ()
386{ 386{
387#ifdef BSD_SYSTEM
388 wait3 (0, WNOHANG | WUNTRACED, 0);
389#else
390 croak ("wait_without_blocking"); 387 croak ("wait_without_blocking");
391#endif
392 synch_process_alive = 0; 388 synch_process_alive = 0;
393} 389}
394 390
diff --git a/src/xterm.c b/src/xterm.c
index fd09d6d4815..1114fcccc53 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -50,9 +50,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
50#include <sys/types.h> 50#include <sys/types.h>
51#endif /* makedev */ 51#endif /* makedev */
52 52
53#ifdef BSD_SYSTEM 53#ifdef HAVE_SYS_IOCTL_H
54#include <sys/ioctl.h> 54#include <sys/ioctl.h>
55#endif /* ! defined (BSD_SYSTEM) */ 55#endif /* ! defined (HAVE_SYS_IOCTL_H) */
56 56
57#include "systime.h" 57#include "systime.h"
58 58