From 4d88f08f5657b512c349f10c907bbf736b2b2139 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 25 Apr 2018 03:47:56 +0200 Subject: [PATCH] Let fwknop build on NetBSD --- common/netinet_common.h | 2 +- configure.ac | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/netinet_common.h b/common/netinet_common.h index ae511bf8..c761cb45 100644 --- a/common/netinet_common.h +++ b/common/netinet_common.h @@ -45,7 +45,7 @@ #if HAVE_NETINET_IN_H #include #endif - #if PLATFORM_OPENBSD /* OpenBSD hack due to autoconf net/if.h difficulties */ + #if PLATFORM_NETBSD || PLATFORM_OPENBSD /* for autoconf net/if.h difficulties */ #include #include #include diff --git a/configure.ac b/configure.ac index ffdc1e82..873f8b3a 100644 --- a/configure.ac +++ b/configure.ac @@ -412,6 +412,9 @@ use_mingw=no case "$host" in *-*-linux*) ;; +*-*-netbsd*) + AC_DEFINE_UNQUOTED([PLATFORM_NETBSD], [1], [Define if you are running on NetBSD]) + ;; *-*-openbsd*) AC_DEFINE_UNQUOTED([PLATFORM_OPENBSD], [1], [Define if you are running on OpenBSD]) ;;