summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetwork.h
authormickeyl <mickeyl>2004-02-23 18:37:03 (UTC)
committer mickeyl <mickeyl>2004-02-23 18:37:03 (UTC)
commit19b274033fc05d5190cee2fa974c683892173c84 (patch) (side-by-side diff)
tree2ad0727ba2414c215cb4b55b93f3b610304c1742 /libopie2/opienet/onetwork.h
parentab0203a43a30598774d8d8a1cf32075817d0dceb (diff)
downloadopie-19b274033fc05d5190cee2fa974c683892173c84.zip
opie-19b274033fc05d5190cee2fa974c683892173c84.tar.gz
opie-19b274033fc05d5190cee2fa974c683892173c84.tar.bz2
The Linux Wireless Extensions V16 introduce some massive changes in the
binary structures. Since we still use V15 on most target platforms I have to introduce two headers. Define OPIE_WE_VERSION to specify which header to include
Diffstat (limited to 'libopie2/opienet/onetwork.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h
index 9b8a0d4..0a51108 100644
--- a/libopie2/opienet/onetwork.h
+++ b/libopie2/opienet/onetwork.h
@@ -31,7 +31,17 @@
#ifndef ONETWORK_H
#define ONETWORK_H
-#include "wireless.h"
+#if !defined( OPIE_WE_VERSION )
+#error Need to define a wireless extension version to build against!
+#endif
+
+#if OPIE_WE_VERSION == 15
+#include "wireless.15.h"
+#endif
+
+#if OPIE_WE_VERSION == 16
+#include "wireless.16.h"
+#endif
/* OPIE */