diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/SimpleSocket.cpp | 2 | ||||
| -rwxr-xr-x | src/SimpleSocket.h | 4 |
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> |
