Browse Source

[pim] Compile fixes for FreeBSD.

User 9 years ago
parent
commit
d0d7980b7c
2 changed files with 7 additions and 1 deletions
  1. 6 0
      pimd/pim_igmp_join.c
  2. 1 1
      pimd/test_igmpv3_join.c

+ 6 - 0
pimd/pim_igmp_join.c

@@ -20,10 +20,16 @@
   $QuaggaId: $Format:%an, %ai, %h$ $
 */
 
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <string.h>
 
 #include "pim_igmp_join.h"
 
+#ifndef SOL_IP
+#define SOL_IP IPPROTO_IP
+#endif
+
 #ifndef MCAST_JOIN_SOURCE_GROUP
 #define MCAST_JOIN_SOURCE_GROUP 46
 struct group_source_req

+ 1 - 1
pimd/test_igmpv3_join.c

@@ -25,9 +25,9 @@
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
-#include <net/if.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <net/if.h>
 #include <arpa/inet.h>
 
 #include "pim_igmp_join.h"