From: Dan Nicolaescu Date: Fri, 6 Aug 2010 20:08:26 +0000 (-0700) Subject: * src/process.c: Simplify include logic. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~49^2~30 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32bc67090a4a4a25cc299644b94d726c4949c7d2;p=emacs.git * src/process.c: Simplify include logic. --- diff --git a/src/ChangeLog b/src/ChangeLog index d93b26b3a41..509ed3e7ea1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2010-08-06 Dan Nicolaescu + * process.c: Simplify include logic. + * keyboard.h (quit_char): Add declaration. * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits) (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add @@ -10,7 +12,6 @@ Remove extern declarations in .c files, .h files have them. * xterm.c: * xdisp.c: - * process.c: * msdos.c: * image.c: * gtkutil.c: diff --git a/src/process.c b/src/process.c index 56d914ce6d5..36f5a7d5adb 100644 --- a/src/process.c +++ b/src/process.c @@ -64,21 +64,15 @@ along with GNU Emacs. If not, see . */ #if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) #include #endif /* HAVE_PTYS and no O_NDELAY */ +#if defined(HAVE_NET_IF_H) +#include +#endif /* HAVE_NET_IF_H */ #endif /* HAVE_SYS_IOCTL_H */ #ifdef NEED_BSDTTY #include #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 -#endif -#include -#endif - #ifdef HAVE_SYS_WAIT #include #endif