cec: moved the previously added OS-X ifdef to posix/os-socket.h
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 7 Feb 2012 01:13:40 +0000 (02:13 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 7 Feb 2012 01:13:40 +0000 (02:13 +0100)
src/lib/platform/posix/os-socket.h
src/lib/platform/sockets/socket.h

index 468cc3deb4dfa075a60bff9cd2ca899e8ac0d5d8..30be947159d2fe9c64ed90f30be9e8fa7ee31799 100644 (file)
 #include <netdb.h>
 #include <poll.h>
 
+/* Needed on Mac OS/X */
+#ifndef SOL_TCP
+#define SOL_TCP IPPROTO_TCP
+#endif
+
 namespace PLATFORM
 {
   // Standard sockets
index 9ef359679f1b0e48fb7634351d3f15cbbfe611d9..388bb2d8a0d2fd13e2500207f13481ce31dfbbf9 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