summaryrefslogtreecommitdiff
path: root/net/cnet/files/patch-ad
blob: f8a4ed61f52d2a850ce2d3004888ed686c9095c4 (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
35
36
37
38
39
40
patch-ad:
--- src/compile.c.orig	Sun Jan 26 03:42:23 1997
+++ src/compile.c	Sat Feb 13 02:29:14 1999
@@ -2,6 +2,7 @@
 
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <dlfcn.h>
 
 #if	!defined(MAXPATHLEN)
 #define	MAXPATHLEN	1024
@@ -25,6 +26,9 @@
 #elif	defined(USE_IRIX5)
 #include "irix5/compile.c"
 
+#elif	defined(USE_FREEBSD)
+#include "freebsd/compile.c"
+
 #elif	defined(USE_LINUXAOUT)
 #include "linuxaout/compile.c"
 
@@ -263,7 +267,6 @@
 			int kflag; char **Cflags, *o_file, *c_file;
 {
     extern int	fork			_PARAMS((void));
-    extern int	execvp			_PARAMS((const char *, char **));
 
     struct stat	stat_c, stat_o;
 
@@ -483,6 +486,10 @@
 {
 
 #define	RECIEVE		"[Rr][Ee][Cc][IiEe][Ee][Vv]"
+
+#if	defined(USE_FREEBSD)
+#include	<unistd.h>
+#endif
 
 #if	defined(SVR4) || defined(__svr4__)
 #include <regexpr.h>