aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-10 12:24:58 +0000
committerWerner Koch <[email protected]>2010-03-10 12:24:58 +0000
commitd8b1099d01ebc1d305d47ec6dcb326980ad56396 (patch)
treecb92563d8b116872c34ad26dcdacfd02ed3da04a /common/exechelp.c
parentFix for latest libgpg-error. (diff)
downloadgnupg-d8b1099d01ebc1d305d47ec6dcb326980ad56396.tar.gz
gnupg-d8b1099d01ebc1d305d47ec6dcb326980ad56396.zip
Merged jnlib into common.
Diffstat (limited to 'common/exechelp.c')
-rw-r--r--common/exechelp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/exechelp.c b/common/exechelp.c
index 95e5b633c..f71cd7349 100644
--- a/common/exechelp.c
+++ b/common/exechelp.c
@@ -25,7 +25,9 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
-#include <signal.h>
+#ifdef HAVE_SIGNAL_H
+# include <signal.h>
+#endif
#include <unistd.h>
#include <fcntl.h>
@@ -78,6 +80,12 @@
#define X_OK F_OK
#endif /* HAVE_W32_SYSTEM */
+/* Constants not supported by WindowsCE. */
+#ifdef HAVE_W32CE_SYSTEM
+# define DETACHED_PROCESS (0)
+# define CREATE_NEW_PROCESS_GROUP (0)
+#endif
+
#ifdef HAVE_W32_SYSTEM
/* We assume that a HANDLE can be represented by an int which should