diff --git a/wifi/configure.in.in b/wifi/configure.in.in index f796f816..0c883800 100644 --- a/wifi/configure.in.in +++ b/wifi/configure.in.in @@ -11,6 +11,9 @@ if test "x$with_wifi" != xno; then AC_TRY_COMPILE( [ #include + #ifndef PROC_NET_DEV + #define PROC_NET_DEV "/proc/net/dev" + #endif ], [ const char *s = PROC_NET_DEV; diff --git a/wifi/interface_wireless_wirelessextensions.cpp b/wifi/interface_wireless_wirelessextensions.cpp index 58abe9c9..874eefb3 100644 --- a/wifi/interface_wireless_wirelessextensions.cpp +++ b/wifi/interface_wireless_wirelessextensions.cpp @@ -30,6 +30,10 @@ #include #endif +#ifndef PROC_NET_DEV +#define PROC_NET_DEV "/proc/net/dev" +#endif + #include #include #include