blob: 51a60de3af42977c4171187edc3f3dd282f1c565 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- execunix.c.orig 2006-06-05 12:52:27.000000000 +0200
+++ execunix.c 2014-08-07 15:38:48.000000000 +0200
@@ -45,6 +45,13 @@
# ifdef USE_EXECUNIX
+
+# ifdef OS_FREEBSD
+# include <unistd.h>
+# include <sys/types.h>
+# include <sys/wait.h>
+# endif
+
# ifdef OS_OS2
# define USE_EXECNT
# include <process.h>
@@ -85,6 +92,8 @@
void
onintr( int disp )
{
+ (void)disp;
+
intr++;
printf( "...interrupted\n" );
}
@@ -231,7 +240,7 @@
# else
if ((pid = vfork()) == 0)
{
- execvp( argv[0], argv );
+ execvp( argv[0], (char * const *)argv );
_exit(127);
}
# endif
|