summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads/patches/patch-ak
blob: 7918930f88567192e53c4f01ec93ee16b8683321 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
$NetBSD: patch-ak,v 1.8 1999/09/10 20:38:23 bad Exp $

--- config/configure.in.orig	Wed Nov 13 22:03:08 1996
+++ config/configure.in	Fri Sep 10 20:54:50 1999
@@ -124,6 +124,19 @@
 name=$host_cpu-$host_os
 
 case $host in
+changequote(,)dnl
+    alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.4*) 
+	name=alpha-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="fork lseek pipe fstat"
+	available_syscalls="sigsuspend sigprocmask"
+	;;
+changequote([,])dnl
+    alpha-*-netbsd1.3*) 
+	name=alpha-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="fork lseek pipe sigsuspend sigprocmask fstat"
+	;;
     alpha-*-netbsd1.1* | alpha-*-netbsd1.2*)
 	name=alpha-netbsd-1.1
 	sysincludes=netbsd-1.1
@@ -137,6 +150,19 @@
 	  CFLAGS="$CFLAGS -std"
 	fi
 	;;
+changequote(,)dnl
+    arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.4*)
+	name=arm32-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="fork pipe lseek ftruncate fstat"
+	available_syscalls="sigsuspend sigprocmask"
+	;;
+changequote([,])dnl
+    arm32-*-netbsd1.3*)
+	name=arm32-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="fork pipe lseek ftruncate sigsuspend sigprocmask fstat"
+	;;
     hppa1.1-*-hpux*)
 	name=hppa-hpux-9.03
 	sysincludes=hpux-9.03
@@ -158,6 +184,19 @@
 	AC_DEFINE(LD_LINKS_STATIC_DATA)
 	AC_DEFINE(BROKEN_SIGNALS)
 	;;
+changequote(,)dnl
+    sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.4*)
+	name=sparc-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="pipe fork lseek ftruncate fstat"
+	available_syscalls="sigprocmask sigsuspend"
+	;;
+changequote([,])dnl
+    sparc-*-netbsd1.3*)
+	name=sparc-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="pipe fork lseek ftruncate sigprocmask sigsuspend fstat"
+	;;
 	sparc-*-netbsd1.0A | sparc-*-netbsd1.1* | sparc-*-netbsd1.2*)
     name=sparc-sunos-4.1.3
     sysincludes=netbsd-1.0
@@ -178,6 +217,19 @@
         syscall=i386-bsdi-2.0
         except="fork lseek sigsuspend"
 		;;
+changequote(,)dnl
+    i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.4*)
+	name=i386-netbsd-1.3
+	sysincludes=netbsd-1.1
+	except="fork lseek ftruncate pipe fstat"
+	available_syscalls="sigsuspend sigprocmask"
+		;;
+changequote([,])dnl
+    i386-*-netbsd1.3*)
+        name=i386-netbsd-1.3
+        sysincludes=netbsd-1.1
+        except="fork lseek ftruncate pipe sigsuspend sigprocmask fstat"
+		;;
     i386-*-netbsd1.1* | i386-*-netbsd1.2*)
 	name=i386-netbsd-1.0
 	sysincludes=netbsd-1.1
@@ -193,8 +245,18 @@
 	name=i386-netbsd-0.9
 	sysincludes=netbsd-0.9
 	;;
-    m68*-*-netbsd*)
+changequote(,)dnl
+    m68*-*-netbsd1.3[H-Z]|m68*-*-netbsd1.4*)
 	name=m68000-netbsd
+	sysincludes=netbsd-1.1
+	except="lseek ftruncate pipe fstat"
+	available_syscalls="sigsuspend sigprocmask"
+	;;
+changequote([,])dnl
+    m68*-*-netbsd1.3*)
+	name=m68000-netbsd
+	sysincludes=netbsd-1.1
+	except="lseek ftruncate pipe fstat sigsuspend sigprocmask"
 	;;
     i386-*-freebsd2.*)
         name=i386-freebsd-2.0
@@ -304,6 +366,16 @@
 AC_MSG_RESULT($pthreads_cv_timespec_in_time)
 if test $pthreads_cv_timespec_in_time = yes ; then
   AC_DEFINE(_OS_HAS_TIMESPEC)
+fi
+
+dnl	socklen_t
+AC_CACHE_VAL(pthreads_cv_socklen_t,
+  AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>], [socklen_t foo;],
+	pthreads_cv_socklen_t=yes, pthreads_cv_socklen_t=no))
+AC_MSG_RESULT($pthreads_cv_socklen_t)
+if test $pthreads_cv_socklen_t = yes ; then
+  AC_DEFINE(_OS_HAS_SOCKLEN_T)
 fi