-rw-r--r-- | libopie2/opienet/onetwork.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index a953296..f5fbe1d 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h @@ -34,4 +34,10 @@ #if !defined( OPIE_WE_VERSION ) -#error Need to define a wireless extension version to build against! -#endif + #warning No wireless extension specified; autodetecting... + #include <linux/version.h> + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) + #define OPIE_WE_VERSION 15 + #else + #define OPIE_WE_VERSION 16 + #endif // LINUX_VERSION_CODE < KERNEL_VERSION(2.4.23) +#endif // !defined( OPIE_WE_VERSION ) @@ -39,6 +45,7 @@ #include "wireless.15.h" +#warning Using WE V15 #endif - #if OPIE_WE_VERSION == 16 #include "wireless.16.h" +#warning Using WE V16 #endif |