* net.cc (cygwin_inet_ntop): Change len argument to socklen_t to
follow SUSv3. * include/arpa/inet.h (inet_ntop): Ditto. * include/cygwin/in.h: Include cygwin/socket.h to get socklen_t.
This commit is contained in:
@@ -27,7 +27,7 @@ in_addr_t inet_netof (struct in_addr);
|
||||
in_addr_t inet_network (const char *);
|
||||
char *inet_ntoa (struct in_addr);
|
||||
int inet_pton (int, const char *, void *);
|
||||
const char *inet_ntop (int, const void *, char *, size_t);
|
||||
const char *inet_ntop (int, const void *, char *, socklen_t);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#define _CYGWIN_IN_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cygwin/socket.h>
|
||||
|
||||
/* Standard well-defined IP protocols. If you ever add one here, don't
|
||||
forget to define it below. */
|
||||
|
Reference in New Issue
Block a user