patch-ext_sockets_sockaddr_conv_c 554 B

123456789101112131415
  1. $OpenBSD: patch-ext_sockets_sockaddr_conv_c,v 1.1 2014/11/15 13:43:01 robert Exp $
  2. --- ext/sockets/sockaddr_conv.c.orig.port Wed Mar 5 10:18:00 2014
  3. +++ ext/sockets/sockaddr_conv.c Mon Mar 24 22:53:00 2014
  4. @@ -11,6 +11,10 @@
  5. extern int php_string_to_if_index(const char *val, unsigned *out TSRMLS_DC);
  6. +#if defined(__OpenBSD__)
  7. +#define AI_V4MAPPED 0
  8. +#endif
  9. +
  10. #if HAVE_IPV6
  11. /* Sets addr by hostname, or by ip in string form (AF_INET6) */
  12. int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock TSRMLS_DC) /* {{{ */