1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2020 Dmitry Kozlyuk
11 * Compatibility header
13 * Although symbols declared here are present on Windows,
14 * including <winsock2.h> would expose too much macros breaking common code.
17 #include <netinet/in.h>
18 #include <sys/socket.h>
20 /* defined in ws2_32.dll */
21 __attribute__((stdcall))
23 inet_pton(int af, const char *src, void *dst);
25 /* defined in ws2_32.dll */
26 __attribute__((stdcall))
28 inet_ntop(int af, const void *src, char *dst, socklen_t size);
30 #endif /* _ARPA_INET_H_ */