summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetwork.h
authormickeyl <mickeyl>2003-10-11 16:01:58 (UTC)
committer mickeyl <mickeyl>2003-10-11 16:01:58 (UTC)
commite6273e146d3ef3f9387fbc3b6a214f9b3d08221e (patch) (side-by-side diff)
tree2688e03716f72fee44e7236fef3ea600b897b4e6 /libopie2/opienet/onetwork.h
parent2b2620fee2bbd6f7045b237aa33c277c47512345 (diff)
downloadopie-e6273e146d3ef3f9387fbc3b6a214f9b3d08221e.zip
opie-e6273e146d3ef3f9387fbc3b6a214f9b3d08221e.tar.gz
opie-e6273e146d3ef3f9387fbc3b6a214f9b3d08221e.tar.bz2
we now start to maintain our own copy of wireless.h.
this has several advantages, one of the major ones is that we no longer have to compile different libopienet2 for different kernel (read wireless extension) versions.
Diffstat (limited to 'libopie2/opienet/onetwork.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h
index 00d1ebb..b170ea2 100644
--- a/libopie2/opienet/onetwork.h
+++ b/libopie2/opienet/onetwork.h
@@ -34,6 +34,8 @@
#ifndef ONETWORK_H
#define ONETWORK_H
+#include "wireless.h"
+
/* OPIE */
#include <opie2/onetutils.h>
@@ -46,24 +48,6 @@
#include <qobject.h>
#include <qhostaddress.h>
-// ML: Yeah, I hate to include kernel headers, but it's necessary here
-// ML: Here comes an ugly hack to prevent <linux/wireless.h> including <linux/if.h>
-// ML: which conflicts with the user header <net/if.h>
-// ML: We really need a user header for the Wireless Extensions, something like <net/wireless.h>
-// ML: I will drop Jean a mail on that subject
-
-#include <net/if.h>
-
-#ifndef IFNAMSIZ
-#define IFNAMSIZ 16
-#endif
-#ifndef IW_MAX_PRIV_DEF
-#define IW_MAX_PRIV_DEF 128
-#endif
-
-#define _LINUX_IF_H
-#include <linux/wireless.h>
-
class ONetworkInterface;
class OWirelessNetworkInterface;
class OChannelHopper;