diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-24 06:09:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-24 06:09:36 +0000 |
commit | 1fdcb0e5ceda9b53334b322093df879b8ff52799 (patch) | |
tree | da3f10d5d11a3a392707f83da02a1bfc04293436 | |
parent | 5ec1af2231a7b4de5b26e0208b957b1de167b6c9 (diff) | |
download | tdenetwork-1fdcb0e5ceda9b53334b322093df879b8ff52799.tar.gz tdenetwork-1fdcb0e5ceda9b53334b322093df879b8ff52799.zip |
Fixes for new iwlib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1106905 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | wifi/configure.in.in | 3 | ||||
-rw-r--r-- | wifi/interface_wireless_wirelessextensions.cpp | 4 |
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> |