freebsd-ports/net/samba34/files/patch-lib__replace__libreplace.m4
Ade Lovett 5440e107ef Make samba* work with autoconf-2.67 on 6.x
I'm not entirely sure why it compiles on 7.x/8.x, but nevertheless, the
autoconf-specific parts to these patches absolutely need to go upstream.
2010-09-25 01:29:23 +00:00

12 lines
412 B
Text

--- ./lib/replace/libreplace.m4.orig 2010-05-10 07:58:53.000000000 -0500
+++ ./lib/replace/libreplace.m4 2010-09-24 17:13:45.000000000 -0500
@@ -103,3 +103,8 @@
AC_CHECK_HEADERS(stdarg.h vararg.h)
-AC_CHECK_HEADERS(sys/mount.h mntent.h)
+AC_CHECK_HEADERS([sys/param.h sys/mount.h], [], [],
+[[#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+]])
+AC_CHECK_HEADERS(mntent.h)
AC_CHECK_HEADERS(stropts.h)