xref: /third_party/pulseaudio/src/pulsecore/arpa-inet.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/pulseaudio/src/pulsecore/
153a5a1b3Sopenharmony_ci#ifndef fooarpa_inethfoo
253a5a1b3Sopenharmony_ci#define fooarpa_inethfoo
353a5a1b3Sopenharmony_ci
453a5a1b3Sopenharmony_ci#if defined(HAVE_ARPA_INET_H)
553a5a1b3Sopenharmony_ci
653a5a1b3Sopenharmony_ci#include <arpa/inet.h>
753a5a1b3Sopenharmony_ci
853a5a1b3Sopenharmony_ci#elif defined(OS_IS_WIN32)
953a5a1b3Sopenharmony_ci
1053a5a1b3Sopenharmony_ci/* On Windows winsock2.h (here included via pulsecore/socket.h) provides most of the functionality of arpa/inet.h, except for
1153a5a1b3Sopenharmony_ci * the inet_ntop and inet_pton functions, which are implemented here on versions earlier than Vista. */
1253a5a1b3Sopenharmony_ci
1353a5a1b3Sopenharmony_ci#include <pulsecore/socket.h>
1453a5a1b3Sopenharmony_ci
1553a5a1b3Sopenharmony_ci#if (_WIN32_WINNT < 0x0600)
1653a5a1b3Sopenharmony_ci
1753a5a1b3Sopenharmony_ciconst char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
1853a5a1b3Sopenharmony_ci
1953a5a1b3Sopenharmony_ciint inet_pton(int af, const char *src, void *dst);
2053a5a1b3Sopenharmony_ci
2153a5a1b3Sopenharmony_ci#endif
2253a5a1b3Sopenharmony_ci
2353a5a1b3Sopenharmony_ci#endif
2453a5a1b3Sopenharmony_ci
2553a5a1b3Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024