changeset 23377:b175f6441bba

Some header inclusion fixes to help on NetBSD/FreeBSD. Fixes #2608
author Richard Laager <rlaager@wiktel.com>
date Wed, 18 Jun 2008 00:24:44 +0000
parents 85fc34efe733
children e12600d6b902
files configure.ac libpurple/nat-pmp.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Jun 16 15:19:11 2008 +0000
+++ b/configure.ac	Wed Jun 18 00:24:44 2008 +0000
@@ -2223,9 +2223,11 @@
 AC_CHECK_HEADERS(termios.h)
 
 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
+# sys/sysctl.h on FreeBSD requires sys/types.h
 AC_CHECK_HEADERS(sys/param.h)
 AC_CHECK_HEADERS(sys/sysctl.h, [], [],
 	[[
+		#include <sys/types.h>
 		#ifdef HAVE_PARAM_H
 		# include <sys/param.h>
 		#endif
--- a/libpurple/nat-pmp.c	Mon Jun 16 15:19:11 2008 +0000
+++ b/libpurple/nat-pmp.c	Wed Jun 18 00:24:44 2008 +0000
@@ -35,6 +35,10 @@
 #include "signals.h"
 #include "network.h"
 
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
 #ifdef HAVE_SYS_SYSCTL_H
 #include <sys/sysctl.h>
 #endif