eal/windows: fix C++ compatibility
[dpdk.git] / lib / librte_eal / windows / include / sys / socket.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2020 Dmitry Kozlyuk
3  */
4
5 #ifndef _SYS_SOCKET_H_
6 #define _SYS_SOCKET_H_
7
8 /**
9  * @file
10  *
11  * Compatibility header
12  *
13  * Although symbols declared here are present on Windows,
14  * including <winsock2.h> would expose too much macros breaking common code.
15  */
16
17 #include <stddef.h>
18
19 #define AF_INET  2
20 #define AF_INET6 23
21
22 typedef size_t socklen_t;
23
24 #endif /* _SYS_SOCKET_H_ */