From 9e3dc048e171af6d88f0cc3f16ad0c9fb6a15ce2 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 30 Mar 2003 13:52:20 +0000 Subject: introduce a workaround for conflicting user and kernel headers like and . I really don't like including kernel headers, but in the case of there is no other option yet. --- diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index 998b50e..21fa390 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp @@ -52,7 +52,6 @@ #include #include #include -#include using namespace std; diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index 56da5f4..c544454 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h @@ -45,16 +45,19 @@ #include -// ML: Yeah, I hate to include kernel headers, but it's necessary here -// ML: Recent RedHat and MandrakePatches to the Kernel and WE broke something -// ML: #include e.g. conflicts with #include - #ifndef IFNAMSIZ #define IFNAMSIZ 16 #endif -#include +// ML: Yeah, I hate to include kernel headers, but it's necessary here +// ML: Here comes an ugly hack to prevent including +// ML: which conflicts with the user header +// ML: We really a user header for the Wireless Extensions, something like +// ML: I will drop Jean an mail on that subject + #include +#define _LINUX_IF_H +#include #ifndef SIOCIWFIRSTPRIV #define SIOCIWFIRSTPRIV SIOCDEVPRIVATE -- cgit v0.9.0.2