blob: ba0598b86f128e4ff6cf9307b4d6d35e74fc4b9d (
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
|
$NetBSD: patch-ba,v 1.2 2005/06/24 06:43:47 jlam Exp $
--- hints/netbsd.sh.orig 2003-08-07 12:57:56.000000000 -0400
+++ hints/netbsd.sh 2004-06-06 18:45:19.000000000 -0400
@@ -78,6 +78,30 @@
d_setreuid="$undef"
;;
esac
+case "$osvers" in
+0.9*|1.*|2.*|3.*)
+ d_getprotoent_r="$undef"
+ d_getprotobyname_r="$undef"
+ d_getprotobynumber_r="$undef"
+ d_setprotoent_r="$undef"
+ d_endprotoent_r="$undef"
+ d_getservent_r="$undef"
+ d_getservbyname_r="$undef"
+ d_getservbyport_r="$undef"
+ d_setservent_r="$undef"
+ d_endservent_r="$undef"
+ d_getprotoent_r_proto="$undef"
+ d_getprotobyname_r_proto="$undef"
+ d_getprotobynumber_r_proto="$undef"
+ d_setprotoent_r_proto="$undef"
+ d_endprotoent_r_proto="$undef"
+ d_getservent_r_proto="$undef"
+ d_getservbyname_r_proto="$undef"
+ d_getservbyport_r_proto="$undef"
+ d_setservent_r_proto="$undef"
+ d_endservent_r_proto="$undef"
+ ;;
+esac
# These are obsolete in any netbsd.
d_setrgid="$undef"
@@ -133,23 +157,6 @@
esac
EOCBU
-# Set sensible defaults for NetBSD: look for local software in
-# /usr/pkg (NetBSD Packages Collection) and in /usr/local.
-#
-loclibpth="/usr/pkg/lib /usr/local/lib"
-locincpth="/usr/pkg/include /usr/local/include"
-case "$rpathflag" in
-'')
- ldflags=
- ;;
-*)
- ldflags=
- for yyy in $loclibpth; do
- ldflags="$ldflags $rpathflag$yyy"
- done
- ;;
-esac
-
case `uname -m` in
alpha)
echo 'int main() {}' > try.c
|