author | mickeyl <mickeyl> | 2004-02-23 18:37:03 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-23 18:37:03 (UTC) |
commit | 19b274033fc05d5190cee2fa974c683892173c84 (patch) (side-by-side diff) | |
tree | 2ad0727ba2414c215cb4b55b93f3b610304c1742 /libopie2/opienet/onetwork.h | |
parent | ab0203a43a30598774d8d8a1cf32075817d0dceb (diff) | |
download | opie-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
-rw-r--r-- | libopie2/opienet/onetwork.h | 12 |
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 @@ -32,5 +32,15 @@ #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 */ |