Browse Source

- more fixes for inet_* with vc9/xp

experimental/first_unicode_implementation
Pierre Joye 18 years ago
parent
commit
7700551e7a
  1. 3
      ext/standard/flock_compat.c
  2. 2
      ext/standard/flock_compat.h
  3. 2
      win32/inet.h

3
ext/standard/flock_compat.c

@ -163,6 +163,7 @@ PHPAPI int php_flock(int fd, int operation)
}
#endif
#ifndef PHP_WIN32
#if !(HAVE_INET_ATON)
/* {{{ inet_aton
* Check whether "cp" is a valid ascii representation
@ -226,7 +227,7 @@ int inet_aton(const char *cp, struct in_addr *ap)
}
/* }}} */
#endif /* !HAVE_INET_ATON */
#endif /* !PHP_WIN32 */
/*
* Local variables:
* tab-width: 4

2
ext/standard/flock_compat.h

@ -49,7 +49,9 @@ PHPAPI int flock(int fd, int operation);
#include <arpa/inet.h>
#endif
#ifndef PHP_WIN32
extern int inet_aton(const char *, struct in_addr *);
#endif
#endif
#endif /* FLOCK_COMPAT_H */

2
win32/inet.h

@ -1,7 +1,9 @@
#include "config.w32.h"
#if _MSC_VER >= 1500
# include <In6addr.h>
#endif
#include <Ws2tcpip.h>
#if (_WIN32_WINNT < 0x0600) /* Vita/2k8 have these functions */
PHPAPI int inet_pton(int af, const char* src, void* dst);
PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size);

Loading…
Cancel
Save