From 1fdcb0e5ceda9b53334b322093df879b8ff52799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Mar 2010 06:09:36 +0000 Subject: [PATCH] Fixes for new iwlib git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1106905 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- wifi/configure.in.in | 3 +++ wifi/interface_wireless_wirelessextensions.cpp | 4 ++++ 2 files changed, 7 insertions(+) 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