diff options
author | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/netliba/v6/stdafx.h | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz |
fix ya.make
Diffstat (limited to 'library/cpp/netliba/v6/stdafx.h')
-rw-r--r-- | library/cpp/netliba/v6/stdafx.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/library/cpp/netliba/v6/stdafx.h b/library/cpp/netliba/v6/stdafx.h new file mode 100644 index 0000000000..42ea5c0894 --- /dev/null +++ b/library/cpp/netliba/v6/stdafx.h @@ -0,0 +1,25 @@ +#pragma once + +#include "cstdafx.h" + +#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 + +#include <util/generic/ptr.h> + +template <class T> +static const T* BreakAliasing(const void* f) { + return (const T*)f; +} + +template <class T> +static T* BreakAliasing(void* f) { + return (T*)f; +} |