Better NetInfo behaviour.
[p5sagit/p5-mst-13.2.git] / hints / netbsd.sh
index c508815..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
@@ -56,7 +64,16 @@ case "$osvers" 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