pkgsrc/devel/opencm/patches/patch-ae
minskim f553ea2000 On NetBSD, use statvfs only when sys/statvfs.h is available. This
makes the package build on NetBSD-2.0 and -1.6 again.  OK'ed by jmmv@.
2004-12-13 21:14:12 +00:00

37 lines
800 B
Text

$NetBSD: patch-ae,v 1.6 2004/12/13 21:14:12 minskim Exp $
--- configure.orig 2004-10-24 20:09:36.000000000 -0500
+++ configure
@@ -4928,7 +4928,7 @@ else
if test ! -d "$dir" ; then
continue;
fi
- if test -f "$dir/include/krb5.h"; then
+ if test -f "$dir/include/krb5/krb5.h"; then
vl_cv_lib_kerberos="$dir"
break;
fi
@@ -5017,12 +5017,20 @@ if test -z "$DEFAULT_EDITOR"; then
DEFAULT_EDITOR="vi"
fi
-case $host_os in solaris*|irix*)
-
-cat >>confdefs.h <<\_ACEOF
+case $host_os in
+solaris*|irix*)
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SVR4_STATVFS 1
_ACEOF
+ ;;
+netbsd*)
+ if [ -f /usr/include/sys/statvfs.h ]; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_SVR4_STATVFS 1
+_ACEOF
+ fi
+ ;;
esac