summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mrázek2012-05-29 23:12:08 (GMT)
committerPetr Mrázek2012-05-29 23:12:08 (GMT)
commitc85e9fb35d3510c5dcc367056cda3237d77a7add (patch)
treedc2770bd20fd7ecbe8c765bab666639e5df27395
parent54cad7ca5431c8e27cfb90f51fdfaf69211f0a4f (diff)
downloadclsocket-c85e9fb35d3510c5dcc367056cda3237d77a7add.tar.gz
clsocket-c85e9fb35d3510c5dcc367056cda3237d77a7add.tar.bz2
clsocket-c85e9fb35d3510c5dcc367056cda3237d77a7add.tar.xz
Fix the fail.
-rwxr-xr-xsrc/SimpleSocket.cpp2
-rwxr-xr-xsrc/SimpleSocket.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/SimpleSocket.cpp b/src/SimpleSocket.cpp
index fa386be..44f9ffa 100755
--- a/src/SimpleSocket.cpp
+++ b/src/SimpleSocket.cpp
@@ -92,7 +92,7 @@ CSimpleSocket::CSimpleSocket(CSocketType nType) :
//----------------------------------------------------------------------
case CSimpleSocket::SocketTypeRaw:
{
-#ifdef __LINUX__
+#ifdef _LINUX
m_nSocketDomain = AF_PACKET;
m_nSocketType = CSimpleSocket::SocketTypeRaw;
#endif
diff --git a/src/SimpleSocket.h b/src/SimpleSocket.h
index 23ed419..a3f7032 100755
--- a/src/SimpleSocket.h
+++ b/src/SimpleSocket.h
@@ -49,7 +49,7 @@
#include <stdarg.h>
#include <errno.h>
-#if defined(__LINUX__) || defined (__APPLE__)
+#if defined(_LINUX) || defined (__APPLE__)
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -57,7 +57,7 @@
#include <netinet/ip.h>
#include <netdb.h>
#endif
-#ifdef __LINUX__
+#ifdef _LINUX
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if.h>