summaryrefslogtreecommitdiff
path: root/dmake
diff options
context:
space:
mode:
authorMartin Hollmichel <mh@openoffice.org>2001-05-07 11:47:09 +0000
committerMartin Hollmichel <mh@openoffice.org>2001-05-07 11:47:09 +0000
commit70aeff4ddb1d99cb7db2712daaa9e86c00314b90 (patch)
treed3fd85da7d1327435af8b754eea2732ef12604d3 /dmake
parent9a24398948401abdf997e95da50400666dada55a (diff)
add: CYGWIN changes
Diffstat (limited to 'dmake')
-rw-r--r--dmake/unix/runargv.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dmake/unix/runargv.c b/dmake/unix/runargv.c
index 66b74cc426bc..64a15889b64a 100644
--- a/dmake/unix/runargv.c
+++ b/dmake/unix/runargv.c
@@ -1,4 +1,4 @@
-/* RCS $Id: runargv.c,v 1.2 2000-11-01 12:27:31 hjs Exp $
+/* RCS $Id: runargv.c,v 1.3 2001-05-07 12:47:09 mh Exp $
--
-- SYNOPSIS
-- Invoke a sub process.
@@ -26,6 +26,9 @@
#include <signal.h>
#include "extern.h"
#include "sysintf.h"
+#if defined(__CYGWIN__)
+#include <errno.h>
+#endif
typedef struct prp {
char *prp_cmd;
@@ -67,6 +70,7 @@ int last;
int shell;
char *cmd;
{
+#if !defined(__CYGWIN__)
extern int errno;
#ifndef __APPLE__
#ifdef arm32
@@ -79,6 +83,9 @@ char *cmd;
#endif
#endif
#endif
+#else /* __CYGWIN__ */
+#define sys_errlist _sys_errlist
+#endif
int pid;
char **argv;