From 1a47476aaf672a655ad19333e321c5e3b8efb73b Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 7 Feb 2012 02:13:40 +0100 Subject: [PATCH] cec: moved the previously added OS-X ifdef to posix/os-socket.h --- src/lib/platform/posix/os-socket.h | 5 +++++ src/lib/platform/sockets/socket.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/platform/posix/os-socket.h b/src/lib/platform/posix/os-socket.h index 468cc3d..30be947 100644 --- a/src/lib/platform/posix/os-socket.h +++ b/src/lib/platform/posix/os-socket.h @@ -43,6 +43,11 @@ #include #include +/* Needed on Mac OS/X */ +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#endif + namespace PLATFORM { // Standard sockets diff --git a/src/lib/platform/sockets/socket.h b/src/lib/platform/sockets/socket.h index 9ef3596..388bb2d 100644 --- a/src/lib/platform/sockets/socket.h +++ b/src/lib/platform/sockets/socket.h @@ -40,11 +40,6 @@ #include "../posix/os-socket.h" #endif -/* Needed on Mac OS/X */ -#ifndef SOL_TCP -#define SOL_TCP IPPROTO_TCP -#endif - // Common socket operations namespace PLATFORM -- 2.34.1