batman-adv: Fix build with linux 2.6.25-2.6.27

Message ID 1304928932-10114-1-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit 7eaf03c7c6bc118a9ce704d59b11d13b4c09cd82
Headers

Commit Message

Sven Eckelmann May 9, 2011, 8:15 a.m. UTC
  We must prevent that IPPROTO_UDP gets redefined using compat.h.
Otherwise the build will fail when including things like net/addrconf.h

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 compat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
  

Comments

Marek Lindner May 9, 2011, 11:22 a.m. UTC | #1
On Monday 09 May 2011 10:15:32 Sven Eckelmann wrote:
> We must prevent that IPPROTO_UDP gets redefined using compat.h.
> Otherwise the build will fail when including things like net/addrconf.h

Applied in revision ef0df12.

Thanks,
Marek
  

Patch

diff --git a/compat.c b/compat.c
index 70de376..586898f 100644
--- a/compat.c
+++ b/compat.c
@@ -1,3 +1,4 @@ 
+#include <linux/in.h>
 #include <linux/version.h>
 #include "main.h"