]> code.delx.au - gnu-emacs/commitdiff
Move pid_t related decls out of lisp.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Sep 2012 22:25:22 +0000 (15:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Sep 2012 22:25:22 +0000 (15:25 -0700)
* lisp.h, syswait.h (record_child_status_change, wait_for_termination)
(interruptible_wait_for_termination):
Move these decls from lisp.h to syswait.h, since they use pid_t.
Needed on FreeBSD; see Herbert J. Skuhra in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00571.html>.
* callproc.c: Include syswait.h.

src/ChangeLog
src/callproc.c
src/lisp.h
src/syswait.h

index edf77f55331b3f970a33ab40232122fcae8e49c0..6cd3183f191c829fd3f78dc5808d3ba321c77750 100644 (file)
@@ -1,5 +1,13 @@
 2012-09-23  Paul Eggert  <eggert@cs.ucla.edu>
 
+       Move pid_t related decls out of lisp.h.
+       * lisp.h, syswait.h (record_child_status_change, wait_for_termination)
+       (interruptible_wait_for_termination):
+       Move these decls from lisp.h to syswait.h, since they use pid_t.
+       Needed on FreeBSD; see Herbert J. Skuhra in
+       <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00571.html>.
+       * callproc.c: Include syswait.h.
+
        gnutls.c, gtkutil.c: Use bool for boolean.
        * gnutls.c (gnutls_global_initialized, init_gnutls_functions)
        (emacs_gnutls_handle_error):
index fc3eb943433e1ec1571be1205c632e7140cdad7e..b33882e54c2a764f8ce5a9600cefabd134383931 100644 (file)
@@ -51,6 +51,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "process.h"
 #include "syssignal.h"
 #include "systty.h"
+#include "syswait.h"
 #include "blockinput.h"
 #include "frame.h"
 #include "termhooks.h"
index 7a23ba6165f69a8489f02cc94f26d02e42d6501c..cce7b52cfe56d667a48049cf55c7820ba3e70d3b 100644 (file)
@@ -3333,7 +3333,6 @@ extern int wait_reading_process_output (intmax_t, int, int, int,
 #endif
 extern void add_keyboard_wait_descriptor (int);
 extern void delete_keyboard_wait_descriptor (int);
-extern void record_child_status_change (pid_t, int);
 #ifdef HAVE_GPM
 extern void add_gpm_wait_descriptor (int);
 extern void delete_gpm_wait_descriptor (int);
@@ -3421,8 +3420,6 @@ extern void init_sys_modes (struct tty_display_info *);
 extern void reset_sys_modes (struct tty_display_info *);
 extern void init_all_sys_modes (void);
 extern void reset_all_sys_modes (void);
-extern void wait_for_termination (pid_t);
-extern void interruptible_wait_for_termination (pid_t);
 extern void flush_pending_output (int) ATTRIBUTE_CONST;
 extern void child_setup_tty (int);
 extern void setup_pty (int);
index 9d84876d4bee8a63eb18c8660580709a1c551c42..aa4c4bcf52757550e0cdfba64ecb96843c3ebe29 100644 (file)
@@ -51,4 +51,11 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define WTERMSIG(status) ((status) & 0x7f)
 #endif
 
+/* Defined in process.c.  */
+extern void record_child_status_change (pid_t, int);
+
+/* Defined in sysdep.c.  */
+extern void wait_for_termination (pid_t);
+extern void interruptible_wait_for_termination (pid_t);
+
 #endif /* EMACS_SYSWAIT_H */