View | Details | Raw Unified | Return to bug 15211
Collapse All | Expand All

(-)socket/patches/patch-aa (-41 / +56 lines)
Lines 1-15 Link Here
1
--- Makefile.orig	Thu Sep 10 16:59:31 1992
2
+++ Makefile	Wed Aug 14 16:57:57 1996
3
@@ -43,7 +43,8 @@
4
 ### CDC 4680 EP/IX: (I know it *has* setsid(2), but not with bsd43)
5
 # SWITCHES = -systype bsd43 -DNOSETSID
6
 
7
-
8
+# FreeBSD 2.x (4.4BSD)
9
+SWITCHES=-DHAVE_SYS_PARAM_H -Wall
10
 
11
 ### It should not be necessary to change anything below this line.
12
 ##################################################################
13
--- README.orig	Wed Sep  9 16:45:16 1992
1
--- README.orig	Wed Sep  9 16:45:16 1992
14
+++ README	Wed Aug 14 16:57:58 1996
2
+++ README	Wed Aug 14 16:57:58 1996
15
@@ -166,4 +166,4 @@
3
@@ -166,4 +166,4 @@
Lines 61-95 Link Here
61
 {
49
 {
62
     fd_set readfds ;
50
     fd_set readfds ;
63
     int fdset_width ;
51
     int fdset_width ;
64
--- siglist.c.orig	Sun Aug 30 15:50:48 1992
65
+++ siglist.c	Wed Aug 14 16:57:58 1996
66
@@ -32,12 +32,18 @@
67
 #  endif /* !_NSIG */
68
 #endif /* !NSIG */
69
 
70
-char *sys_siglist[NSIG];
71
+#if HAVE_SYS_PARAM_H
72
+# include <sys/param.h>
73
+#endif
74
 
75
+#if !(defined(BSD) && (BSD >=199306))
76
+char *sys_siglist[NSIG];
77
+#endif
78
 extern *malloc ();
79
 
80
-initialize_siglist ()
81
+void initialize_siglist ()
82
 {
83
+#if !(defined(BSD) && (BSD >=199306))
84
   register int i;
85
 
86
   for (i = 0; i < NSIG; i++)
87
@@ -219,4 +225,5 @@
88
 	  sprintf (sys_siglist[i], "Unknown Signal #%d", i);
89
 	}
90
     }
91
+#endif /* !(defined(BSD) && (BSD >=199306)) */
92
 }
93
--- socket.1.orig	Wed Sep  9 16:38:19 1992
52
--- socket.1.orig	Wed Sep  9 16:38:19 1992
94
+++ socket.1	Wed Aug 14 16:57:58 1996
53
+++ socket.1	Wed Aug 14 16:57:58 1996
95
@@ -158,4 +158,4 @@
54
@@ -158,4 +158,4 @@
Lines 216-218 Link Here
216
 {
175
 {
217
     int i ;
176
     int i ;
218
 #ifdef SIG_SETMASK		/* only with BSD signals */
177
 #ifdef SIG_SETMASK		/* only with BSD signals */
178
--- Makefile.orig	Thu Sep 10 06:59:31 1992
179
+++ Makefile	Tue Nov 30 20:30:50 1999
180
@@ -13,9 +13,11 @@
181
 INSTALLBINMODE = 755
182
 INSTALLMANPATH = $(INSTALLBASE)/man
183
 INSTALLMANMODE = 444
184
+.ifndef CC
185
 CC = cc
186
-CFLAGS  = $(SWITCHES) -O
187
-LDFLAGS = $(SWITCHES) -s
188
+.endif
189
+CFLAGS  += $(SWITCHES)
190
+LDFLAGS += $(SWITCHES) -s
191
 
192
 ### You may need to uncomment some lines below for your operating
193
 ### system:
194
@@ -43,7 +45,8 @@
195
 ### CDC 4680 EP/IX: (I know it *has* setsid(2), but not with bsd43)
196
 # SWITCHES = -systype bsd43 -DNOSETSID
197
 
198
-
199
+# FreeBSD 2.x (4.4BSD)
200
+SWITCHES=-DHAVE_SYS_PARAM_H -Wall
201
 
202
 ### It should not be necessary to change anything below this line.
203
 ##################################################################
204
--- siglist.c.orig	Sun Aug 30 05:50:48 1992
205
+++ siglist.c	Tue Nov 30 20:34:02 1999
206
@@ -32,12 +32,18 @@
207
 #  endif /* !_NSIG */
208
 #endif /* !NSIG */
209
 
210
-char *sys_siglist[NSIG];
211
+#if HAVE_SYS_PARAM_H
212
+# include <sys/param.h>
213
+#endif
214
 
215
-extern *malloc ();
216
+#if !(defined(BSD) && (BSD >=199306))
217
+char *sys_siglist[NSIG];
218
+#endif
219
+extern void*malloc ();
220
 
221
-initialize_siglist ()
222
+void initialize_siglist ()
223
 {
224
+#if !(defined(BSD) && (BSD >=199306))
225
   register int i;
226
 
227
   for (i = 0; i < NSIG; i++)
228
@@ -219,4 +225,5 @@
229
 	  sprintf (sys_siglist[i], "Unknown Signal #%d", i);
230
 	}
231
     }
232
+#endif /* !(defined(BSD) && (BSD >=199306)) */
233
 }

Return to bug 15211