From: Lars Op den Kamp Date: Tue, 7 Feb 2012 01:13:40 +0000 (+0100) Subject: cec: moved the previously added OS-X ifdef to posix/os-socket.h X-Git-Tag: upstream/2.2.0~1^2~35^2~141 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1a47476aaf672a655ad19333e321c5e3b8efb73b;p=deb_libcec.git cec: moved the previously added OS-X ifdef to posix/os-socket.h --- 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