changeset 617:17b49d08a1a6

Fix: warning: implicit declaration of function ‘execvp’ (on Linux host).
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 18 May 2016 14:57:50 +0300
parents 0a24e0cb76b9
children e6675a7afbf1
files cygwin/cygrun/cygrun.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cygwin/cygrun/cygrun.c	Wed May 18 14:55:53 2016 +0300
+++ b/cygwin/cygrun/cygrun.c	Wed May 18 14:57:50 2016 +0300
@@ -1,11 +1,10 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef __CYGWIN__
-# include <unistd.h>
-#endif
 #ifdef _MSC_VER
 # include <process.h>
+#else
+# include <unistd.h>
 #endif
 
 #define MAX_STR_LEN  500