diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2011-03-20 11:18:19 +0000 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2011-03-20 11:18:19 +0000 |
commit | d7ce59de88eda4eb638f977975374359254731f7 (patch) | |
tree | 5baf1627cef783c15b3d339f0d242dcf2a47788c /src/pulsecore/arpa-inet.h | |
parent | f7acd4bdab7092700a9386802a0ec86d4362e58c (diff) | |
parent | f99b17b825ea7dbf4c2e9ecd490d9b6b54018df3 (diff) |
Merge remote-tracking branch 'mkbosmans/mingw32-build'
Diffstat (limited to 'src/pulsecore/arpa-inet.h')
-rw-r--r-- | src/pulsecore/arpa-inet.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pulsecore/arpa-inet.h b/src/pulsecore/arpa-inet.h new file mode 100644 index 00000000..303c905b --- /dev/null +++ b/src/pulsecore/arpa-inet.h @@ -0,0 +1,23 @@ +#ifndef fooarpa_inethfoo +#define fooarpa_inethfoo + + +#if defined(HAVE_ARPA_INET_H) + +#include <arpa/inet.h> + +#elif defined(OS_IS_WIN32) + +/* On Windows winsock2.h (here included via pulsecore/socket.h) provides most of the functionality of arpa/inet.h, except for + * the inet_ntop and inet_pton functions, which are implemented here. */ + +#include <pulsecore/socket.h> + +const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); + +int inet_pton(int af, const char *src, void *dst); + +#endif + + +#endif |