diff options
| author | Timothy Collett | 2012-06-14 13:42:04 -0400 |
|---|---|---|
| committer | Timothy Collett | 2012-06-14 13:42:04 -0400 |
| commit | f2722ca9ac49f8f13da4ddcfcb0fa47a0eb30454 (patch) | |
| tree | 3d301b5830a5c30246c730e7e2f946edada6b96b | |
| parent | c85e9fb35d3510c5dcc367056cda3237d77a7add (diff) | |
| download | clsocket-f2722ca9ac49f8f13da4ddcfcb0fa47a0eb30454.tar.gz clsocket-f2722ca9ac49f8f13da4ddcfcb0fa47a0eb30454.tar.bz2 clsocket-f2722ca9ac49f8f13da4ddcfcb0fa47a0eb30454.tar.xz | |
Ensure that pieces that are Linux-specific are ignored on Mac OS X
| -rwxr-xr-x | src/SimpleSocket.cpp | 2 | ||||
| -rwxr-xr-x | src/SimpleSocket.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/SimpleSocket.cpp b/src/SimpleSocket.cpp index 44f9ffa..a333e3e 100755 --- a/src/SimpleSocket.cpp +++ b/src/SimpleSocket.cpp @@ -92,7 +92,7 @@ CSimpleSocket::CSimpleSocket(CSocketType nType) : //---------------------------------------------------------------------- case CSimpleSocket::SocketTypeRaw: { -#ifdef _LINUX +#if defined(_LINUX) && !defined(__APPLE__) m_nSocketDomain = AF_PACKET; m_nSocketType = CSimpleSocket::SocketTypeRaw; #endif diff --git a/src/SimpleSocket.h b/src/SimpleSocket.h index a3f7032..83ac880 100755 --- a/src/SimpleSocket.h +++ b/src/SimpleSocket.h @@ -57,7 +57,7 @@ #include <netinet/ip.h> #include <netdb.h> #endif -#ifdef _LINUX +#if defined(_LINUX) && !defined(__APPLE__) #include <linux/if_packet.h> #include <linux/if_ether.h> #include <linux/if.h> |
