]> git.eshelyaron.com Git - emacs.git/commitdiff
Small process.c cleanups.
authorDan Nicolaescu <dann@ics.uci.edu>
Fri, 1 Oct 2010 13:04:07 +0000 (06:04 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Fri, 1 Oct 2010 13:04:07 +0000 (06:04 -0700)
* src/process.c: Move #include <pty.h> earlier.
(SIGCHLD): Remove conditional definition, syssignal.h defines it.
(pty_name): Move definition later.

src/ChangeLog
src/process.c

index 753d262417a321aea8b4c062c6997e3d3cd2b4d7..007abc4b34314127224416f79c5031f950b1d08e 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-01  Dan Nicolaescu  <dann@ics.uci.edu>
 
+       * process.c: Move #include <pty.h> earlier.
+       (SIGCHLD): Remove conditional definition, syssignal.h defines it.
+       (pty_name): Move definition later.
+
        * nsselect.m (syms_of_nsselect):
        * nsmenu.m (syms_of_nsmenu):
        * nsfns.m (syms_of_nsfns):
index a698e56fe39f001086cdba3a667aa5a2b33e810c..c78404910af9505c8a0539a085d52b37820a5111 100644 (file)
@@ -82,6 +82,10 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <util.h>
 #endif
 
+#ifdef HAVE_PTY_H
+#include <pty.h>
+#endif
+
 #endif /* subprocesses */
 
 #include "lisp.h"
@@ -171,13 +175,6 @@ extern Lisp_Object QCfilter;
 /* Define first descriptor number available for subprocesses.  */
 #define FIRST_PROC_DESC 3
 
-/* Define SIGCHLD as an alias for SIGCLD.  There are many conditionals
-   testing SIGCHLD.  */
-
-#if !defined (SIGCHLD) && defined (SIGCLD)
-#define SIGCHLD SIGCLD
-#endif /* SIGCLD */
-
 extern const char *get_operating_system_release (void);
 
 /* From sysdep.c or w32.c  */
@@ -356,14 +353,6 @@ struct sockaddr_and_len {
 /* Maximum number of bytes to send to a pty without an eof.  */
 static int pty_max_bytes;
 
-#ifdef HAVE_PTYS
-#ifdef HAVE_PTY_H
-#include <pty.h>
-#endif
-/* The file name of the pty opened by allocate_pty.  */
-
-static char pty_name[24];
-#endif
 \f
 
 struct fd_callback_data
@@ -563,6 +552,9 @@ status_message (struct Lisp_Process *p)
 \f
 #ifdef HAVE_PTYS
 
+/* The file name of the pty opened by allocate_pty.  */
+static char pty_name[24];
+
 /* Open an available pty, returning a file descriptor.
    Return -1 on failure.
    The file name of the terminal corresponding to the pty