[hipl-users] Patch for compilation errors

  • From: Dongsu Park <dpark1978@xxxxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Tue, 27 May 2008 01:49:52 +0200

Hi,

I'm sending a patch for solving compilation errors of hipl. More details are available on my blog post: http://dongsupark.de/blog/archives/95

Regards,
Dongsu Park
* local directory is at hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--main--2.6--patch-323
* comparing to hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--main--2.6--patch-323
M  firewall/rule_management.h
M  firewall/firewall.h
M  firewall/helpers.h
M  libinet6/Makefile.am

* modified files

--- orig/firewall/firewall.h
+++ mod/firewall/firewall.h
@@ -2,6 +2,7 @@
 #define HIP_FIREWALL_H
 
 #include <netinet/in.h>
+#include <linux/types.h>
 #include <linux/netfilter.h>
 #include <libipq.h>
 #include <linux/netfilter.h>


--- orig/firewall/helpers.h
+++ mod/firewall/helpers.h
@@ -3,6 +3,7 @@
 
 #include <netinet/in.h>
 #include <netinet/in.h>
+#include <linux/types.h>
 #include <linux/netfilter_ipv6.h>
 
 #include "debug.h"


--- orig/firewall/rule_management.h
+++ mod/firewall/rule_management.h
@@ -4,6 +4,7 @@
 #include <glib.h>
 #include <glib/glist.h>
 #include <netinet/in.h>
+#include <linux/types.h>
 #include <linux/netfilter.h>
 #include <libipq.h>
 #include <glib.h>


--- orig/libinet6/Makefile.am
+++ mod/libinet6/Makefile.am
@@ -46,7 +46,7 @@
 libinet6_la_SOURCES += hipconf.c message.c
 
 # Original flags.
-CFLAGS  = -D_LIBC_REENTRANT -D_IO_MTSAFE_IO -D_USAGI -D_GNU_SOURCE
+CFLAGS  = -D_LIBC_REENTRANT -D_USAGI -D_GNU_SOURCE
 CFLAGS += -DCOMPAT_RFC2292 -Iinclude -D__ss_family=ss_family -D__ss_len=ss_len
 CFLAGS += -D_USAGI_LIBINET6=$(usagi_libc) -Iinclude_glibc$(usagi_libc)
 CFLAGS += -DHIPL_DEFAULT_PREFIX=\"$(prefix)\"

Other related posts: