From 8637ad53b004d3e88e515fbf91ea4f7f17a11721 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 7 Feb 2012 01:36:56 +0100 Subject: [PATCH] cec: fix OS-X compilation. credits: Dustin Cooper --- src/lib/platform/sockets/socket.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/platform/sockets/socket.h b/src/lib/platform/sockets/socket.h index 388bb2d..9ef3596 100644 --- a/src/lib/platform/sockets/socket.h +++ b/src/lib/platform/sockets/socket.h @@ -40,6 +40,11 @@ #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