[kaffe] Re: openbsd sysctl.h present but cannot be compiled + workaround
Kurt Miller
kurt at intricatesoftware.com
Thu Aug 10 19:12:00 PDT 2006
Frederick C. Druseikis wrote:
> Hopefully this will be enough input to patch kaffe so that I don't
> need the "funky sysctl.h" If someone wants to suggest a patch I
> can test it.
>
Here's a patch to configure.ac that will quiet the warning on
OpenBSD. However, if I'm not mistaken sysctl.h is only used
on FreeBSD so it shouldn't affect the kaffe binary on OpenBSD.
--- configure.ac.orig Thu Aug 10 22:04:32 2006
+++ configure.ac Thu Aug 10 22:07:21 2006
@@ -1173,7 +1173,6 @@
sys/socket.h \
sys/sockio.h \
sys/stat.h \
-sys/sysctl.h \
sys/sysinfo.h \
sys/time.h \
sys/types.h \
@@ -1186,6 +1185,13 @@
wintypes.h \
wtypes.h \
zlib.h])
+
+# check sys/sysctl.h seperately, as it requires other headers on at
least OpenBSD
+AC_CHECK_HEADERS([sys/sysctl.h], [], [],
+[[#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+]])
# check net/if.h seperately, as it requrires other headers on OS X
# and HP-UX 10.20
More information about the kaffe
mailing list