author | clem <clem> | 2004-09-16 22:30:54 (UTC) |
---|---|---|
committer | clem <clem> | 2004-09-16 22:30:54 (UTC) |
commit | ba8276a03172cfdb41aac4b0cd53307dfdd2b8f1 (patch) (side-by-side diff) | |
tree | c1a6f6712064942b773bbc0b11cc474955a96a74 | |
parent | 85ebe50b5cfa9244c1610aac5d72de8a4cc263b6 (diff) | |
download | opie-ba8276a03172cfdb41aac4b0cd53307dfdd2b8f1.zip opie-ba8276a03172cfdb41aac4b0cd53307dfdd2b8f1.tar.gz opie-ba8276a03172cfdb41aac4b0cd53307dfdd2b8f1.tar.bz2 |
define ARPHRD_IEEE80211 if <net/if_arp.h> doesn't (i.e. if our crosscompiler's version is 2.95 and not 3.3)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/system.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/system.cpp b/noncore/settings/networksettings2/networksettings2/system.cpp index 271e73d..298bdc9 100644 --- a/noncore/settings/networksettings2/networksettings2/system.cpp +++ b/noncore/settings/networksettings2/networksettings2/system.cpp @@ -4,48 +4,52 @@ #include <net/if.h> #include <net/if_arp.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <qdir.h> #include <qregexp.h> #include <qstringlist.h> #include <qfile.h> #include <qtextstream.h> #include <qapplication.h> #include "resources.h" #include "system.h" #define PROCNETDEV "/proc/net/dev" +#ifndef ARPHRD_IEEE80211 +#define ARPHRD_IEEE80211 801 +#endif + static char Dig2Hex[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; // get HIGH nibble of byte #define HN(x) Dig2Hex[(((x)&0xf0)>>4)] // get LOW nibble of byte #define LN(x) Dig2Hex[((x)&0x0f)] System::System( void ) : QObject(), ProbedInterfaces() { probeInterfaces(); } System::~System( void ) { if( ProcDevNet ) delete ProcDevNet; } int System::runAsRoot( const QString & S ) { QString MyS = S; char * usr = getenv("USER"); |