aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/stdafx.h
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/netliba/socket/stdafx.h
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'library/cpp/netliba/socket/stdafx.h')
-rw-r--r--library/cpp/netliba/socket/stdafx.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/library/cpp/netliba/socket/stdafx.h b/library/cpp/netliba/socket/stdafx.h
new file mode 100644
index 0000000000..7d99e5dc10
--- /dev/null
+++ b/library/cpp/netliba/socket/stdafx.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <util/system/platform.h>
+#if defined(_darwin_)
+#define __APPLE_USE_RFC_2292
+#endif
+
+#include <util/system/compat.h>
+#include <util/network/init.h>
+#if defined(_unix_)
+#include <netdb.h>
+#include <fcntl.h>
+#elif defined(_win_)
+#include <winsock2.h>
+using socklen_t = int;
+#endif