opnsense-ports/devel/ftjam/files/patch-execunix.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

34 lines
588 B
C

--- 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