cec: fix OS-X compilation. credits: Dustin Cooper
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 7 Feb 2012 00:36:56 +0000 (01:36 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 7 Feb 2012 00:36:56 +0000 (01:36 +0100)
src/lib/platform/sockets/socket.h

index 388bb2d8a0d2fd13e2500207f13481ce31dfbbf9..9ef359679f1b0e48fb7634351d3f15cbbfe611d9 100644 (file)
 #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