aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert2013-07-16 00:05:41 -0700
committerPaul Eggert2013-07-16 00:05:41 -0700
commitc7ddc792b747fdf4fde822df0cf9c7b712be4219 (patch)
treede532bf42e3675fa093996b13ddb490cb8ec2f6c /src/lisp.h
parente6c005c5f8e39252fd11821b6452843bead2df6a (diff)
downloademacs-c7ddc792b747fdf4fde822df0cf9c7b712be4219.tar.gz
emacs-c7ddc792b747fdf4fde822df0cf9c7b712be4219.zip
Fix porting bug to older POSIXish platforms.
* sysdep.c (emacs_pipe): New function, that implements pipe2 (fd, O_CLOEXEC) even on hosts that lack O_CLOEXEC. This should port better to CentOS 5 and to Mac OS X 10.6. All calls to pipe2 changed. Fixes: debbugs:14862
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index a54b2e07057..6a551bb499d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4094,6 +4094,7 @@ extern void init_random (void);
4094extern void emacs_backtrace (int); 4094extern void emacs_backtrace (int);
4095extern _Noreturn void emacs_abort (void) NO_INLINE; 4095extern _Noreturn void emacs_abort (void) NO_INLINE;
4096extern int emacs_open (const char *, int, int); 4096extern int emacs_open (const char *, int, int);
4097extern int emacs_pipe (int[2]);
4097extern int emacs_close (int); 4098extern int emacs_close (int);
4098extern ptrdiff_t emacs_read (int, char *, ptrdiff_t); 4099extern ptrdiff_t emacs_read (int, char *, ptrdiff_t);
4099extern ptrdiff_t emacs_write (int, const char *, ptrdiff_t); 4100extern ptrdiff_t emacs_write (int, const char *, ptrdiff_t);