Include synchronization/SaturatingSemaphore.h in the makefile
[folly.git] / folly / portability / Sockets.h
index 99f1424dd7dc26b2569262edccb2429e9db91e27..ad6b5f0824eaaf1d3d2dfb465b334db77f2eaf87 100755 (executable)
@@ -27,6 +27,7 @@
 #include <sys/un.h>
 
 #ifdef MSG_ERRQUEUE
+#define FOLLY_HAVE_MSG_ERRQUEUE 1
 /* for struct sock_extended_err*/
 #include <linux/errqueue.h>
 #endif
 #define SO_EE_ORIGIN_ZEROCOPY 5
 #endif
 
+#ifndef SO_EE_CODE_ZEROCOPY_COPIED
+#define SO_EE_CODE_ZEROCOPY_COPIED 1
+#endif
+
 #ifndef SO_ZEROCOPY
 #define SO_ZEROCOPY 60
 #endif
@@ -215,9 +220,9 @@ int setsockopt(
     const char* optval,
     socklen_t optlen);
 #endif
-}
-}
-}
+} // namespace sockets
+} // namespace portability
+} // namespace folly
 
 #ifdef _WIN32
 // Add our helpers to the overload set.