Mercurial > emacs
diff src/process.c @ 109793:b60dcdd855f0
Merge from mainline.
| author | Katsumi Yamaoka <yamaoka@jpl.org> |
|---|---|
| date | Sun, 08 Aug 2010 22:52:25 +0000 |
| parents | bd826f80a765 |
| children | 64732fa6188a |
line wrap: on
line diff
--- a/src/process.c Fri Aug 06 03:43:29 2010 +0000 +++ b/src/process.c Sun Aug 08 22:52:25 2010 +0000 @@ -64,21 +64,15 @@ #if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) #include <fcntl.h> #endif /* HAVE_PTYS and no O_NDELAY */ +#if defined(HAVE_NET_IF_H) +#include <net/if.h> +#endif /* HAVE_NET_IF_H */ #endif /* HAVE_SYS_IOCTL_H */ #ifdef NEED_BSDTTY #include <bsdtty.h> #endif -/* Can we use SIOCGIFCONF and/or SIOCGIFADDR */ -#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_NET_IF_H) -/* sys/ioctl.h may have been included already */ -#ifndef SIOCGIFADDR -#include <sys/ioctl.h> -#endif -#include <net/if.h> -#endif - #ifdef HAVE_SYS_WAIT #include <sys/wait.h> #endif @@ -89,6 +83,10 @@ #include <resolv.h> #endif +#ifdef HAVE_UTIL_H +#include <util.h> +#endif + #endif /* subprocesses */ #include "lisp.h" @@ -116,7 +114,9 @@ #if defined (USE_GTK) || defined (HAVE_GCONF) #include "xgselect.h" #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ - +#ifdef HAVE_NS +#include "nsterm.h" +#endif extern int timers_run; Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; @@ -6355,8 +6355,7 @@ { int old_errno = errno; Lisp_Object proc; - register struct Lisp_Process *p; - extern EMACS_TIME *input_available_clear_time; + struct Lisp_Process *p; SIGNAL_THREAD_CHECK (signo);
