1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Fix build on FreeBSD 10

Approved by:	portmgr (miwi)
This commit is contained in:
Beat Gaetzi 2011-10-29 13:42:49 +00:00
parent 0106227f78
commit 5ee061e4b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=284645
5 changed files with 9 additions and 3 deletions

View File

@ -31,6 +31,7 @@ GNU_CONFIGURE= yes
USE_RC_SUBR= snmpd.sh snmptrapd.sh
USE_OPENSSL= yes
USE_LDCONFIG= yes
WITH_FBSD10_FIX= yes
WANT_PERL= yes
CONFIGURE_ENV+= PERLPROG="${PERL}" PSPROG="${PS_CMD}" SED="${SED}"

View File

@ -0,0 +1,5 @@
--- include/net-snmp/system/freebsd10.h.orig 2009-09-11 10:02:17.000000000 -0400
+++ include/net-snmp/system/freebsd10.h 2009-09-11 10:02:17.000000000 -0400
@@ -0,0 +1,2 @@
+#include "freebsd9.h"
+#define freebsd9 freebsd9

View File

@ -5,7 +5,7 @@
#if defined( linux )
config_require(sctp-mib/sctpScalars_linux)
-#elif defined( freebsd8 ) || defined ( freebsd7 )
+#elif defined( freebsd9 ) || defined( freebsd8 ) || defined ( freebsd7 )
+#elif defined( freebsd10 ) || defined( freebsd9 ) || defined( freebsd8 ) || defined ( freebsd7 )
config_require(sctp-mib/sctpScalars_freebsd)
#else
/*

View File

@ -5,7 +5,7 @@
config_require(sctp-mib/sctpTables_linux)
config_require(util_funcs/get_pid_from_inode)
-#elif defined( freebsd7 ) || defined( freebsd8 )
+#elif defined( freebsd7 ) || defined( freebsd8 ) || defined( freebsd9 )
+#elif defined( freebsd7 ) || defined( freebsd8 ) || defined( freebsd9 ) || defined( freebsd10 )
config_require(sctp-mib/sctpTables_freebsd)
#else
config_error(SCTP-MIB is not available in tihs environment)

View File

@ -5,7 +5,7 @@
#define SCTP_TABLES_COMMON_H
-#if defined(freebsd8) || defined(freebsd7)
+#if defined(freebsd9) || defined(freebsd8) || defined(freebsd7)
+#if defined(freebsd10) || defined(freebsd9) || defined(freebsd8) || defined(freebsd7)
#define netsnmp_table_registration_info_free SNMP_FREE
#endif