build-sys: Use ax_check_flag macros from autoconf archive
[pulseaudio-mirror.git] / src / pulsecore / arpa-inet.h
blob303c905b9a3410214a49b8308b9381f3f999af9c
1 #ifndef fooarpa_inethfoo
2 #define fooarpa_inethfoo
5 #if defined(HAVE_ARPA_INET_H)
7 #include <arpa/inet.h>
9 #elif defined(OS_IS_WIN32)
11 /* On Windows winsock2.h (here included via pulsecore/socket.h) provides most of the functionality of arpa/inet.h, except for
12 * the inet_ntop and inet_pton functions, which are implemented here. */
14 #include <pulsecore/socket.h>
16 const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
18 int inet_pton(int af, const char *src, void *dst);
20 #endif
23 #endif