summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@freebsd.network>2024-03-08 18:04:34 +0000
committerDonald Sharp <sharpd@freebsd.network>2024-03-08 18:04:34 +0000
commita5389154a1363ea778e0cafddc34f1964631278c (patch)
treeefd7877a415391611e7c18c0ef80b55d66119877 /configure.ac
parentf2bb6874268b271e49ca2acdc5dba5efd2b0b697 (diff)
pimd: Cleanup inclusion of headers
FRR needs to properly include the FreeBSD headers for compilation on FreeBSD. I have setup v6 as well but I have not even tested it. Since I know that the form is the same I think this is ok at the moment. This is a step forward. Because of this change *clearly* no-one is even using pim on FreeBSD. <look at the MRT_XXX values to prove to yourself>. In any event this is a step in the direction of getting that working again. Signed-off-by: Donald Sharp <sharpd@freebsd.network>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 174090d3a9..d602354456 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1581,6 +1581,21 @@ FRR_INCLUDES
#endif
])dnl
+AC_CHECK_HEADERS([netinet6/ip6_mroute.h], [], [],[
+ #include <sys/socket.h>
+ #include <sys/param.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
+ #include <net/route.h>
+])
+
+m4_define([FRR_INCLUDES],
+FRR_INCLUDES
+[#ifdef HAVE_NETINET_IP6_MROUTE_H
+# include <netinet6/ip6_mroute.h>
+#endif
+])dnl
+
AC_MSG_CHECKING([for RFC3678 protocol-independed API])
AC_COMPILE_IFELSE(
[ AC_LANG_PROGRAM([[