Mercurial > hg > xemacs-beta
diff src/sysproc.h @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | c33ae14dd6d0 |
children | 2b6fa2618f76 |
line wrap: on
line diff
--- a/src/sysproc.h Fri Mar 08 13:33:14 2002 +0000 +++ b/src/sysproc.h Wed Mar 13 08:54:06 2002 +0000 @@ -1,5 +1,6 @@ /* Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 2000 Ben Wing. This file is part of XEmacs. @@ -23,10 +24,6 @@ #ifndef INCLUDED_sysproc_h_ #define INCLUDED_sysproc_h_ -#ifdef HAVE_VFORK_H -# include <vfork.h> -#endif - #include "systime.h" /* necessary for sys/resource.h; also gets the FD_* defines on some systems. */ #ifndef WIN32_NATIVE @@ -35,6 +32,23 @@ #if !defined (NO_SUBPROCESSES) +#ifdef MINGW +#include <../mingw/process.h> +#elif defined (CYGWIN) +#include <../include/process.h> +#elif defined (WIN32_NATIVE) +/* <process.h> should not conflict with "process.h", as per ANSI definition. + This is not true with visual c though. The trick below works with + VC4.2b, 5.0 and 6.0. It assumes that VC is installed in a kind of + standard way, so include path ends with /include. + NOTE: We also include this same file in s/windowsnt.h, to avoid problems + because this file prototypes abort() and then lisp.h defines it as a + macro, which must happen after the prototype. DO NOT remove the include + here just because you "know" it's somewhere else as well. +*/ +#include <../include/process.h> +#endif + #ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ # include <sys/types.h> /* AJK */ # ifndef WIN32_NATIVE @@ -164,5 +178,8 @@ #endif /* no FD_SET */ int poll_fds_for_input (SELECT_TYPE mask); +int qxe_execve (const Intbyte *filename, Intbyte * const argv[], + Intbyte * const envp[]); +pid_t qxe_getpid (void); #endif /* INCLUDED_sysproc_h_ */