fill gaps in sig_* entries in win32/config.?c
[p5sagit/p5-mst-13.2.git] / hints / netbsd.sh
index d14dd0b..71d5084 100644 (file)
@@ -41,6 +41,14 @@ case "$osvers" in
        esac
        ;;
 esac
+# netbsd 1.3 linker warns about setr[gu]id being deprecated.
+# (setregid, setreuid, preferred?)
+case "$osvers" in
+1.3|1.3*)
+       d_setrgid="$undef"
+       d_setruid="$undef"
+       ;;
+esac
 
 # netbsd had these but they don't really work as advertised, in the
 # versions listed below.  if they are defined, then there isn't a
@@ -48,7 +56,7 @@ esac
 # ($<, $>) = ($u, $u); will work (same for $(/$)).  this is because
 # you can not change the real userid of a process under 4.4BSD.
 # netbsd fixed this in 1.2A.
-case "$osver" in
+case "$osvers" in
 0.9*|1.0*|1.1*|1.2_*|1.2|1.2.*)
        d_setregid="$undef"
        d_setreuid="$undef"
@@ -56,7 +64,16 @@ case "$osver" in
        d_setruid="$undef"
        ;;
 esac
+# netbsd 1.3 linker warns about setr[gu]id being deprecated.
+# (setregid, setreuid, preferred?)
+case "$osvers" in
+1.3|1.3*)
+       d_setrgid="$undef"
+       d_setruid="$undef"
+       ;;
+esac
 
-# Avoid telldir prototype conflict in pp_sys.c  (NetBSD uses const DIR *)
-# Configure should test for this.  Volunteers?
-pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
+# vfork is ok on NetBSD.
+case "$usevfork" in
+'') usevfork=true ;;
+esac