summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
Diffstat (limited to 'wifi')
-rw-r--r--wifi/configure.in.in3
-rw-r--r--wifi/interface_wireless_wirelessextensions.cpp4
2 files changed, 7 insertions, 0 deletions
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 <iwlib.h>
+ #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 <arts/referenceclean.h>
#endif
+#ifndef PROC_NET_DEV
+#define PROC_NET_DEV "/proc/net/dev"
+#endif
+
#include <iostream>
#include <string>
#include <klocale.h>