projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
verify: Fix syntax error with GCC 4.6 in C++ mode.
[gnulib.git]
/
lib
/
netdb.in.h
diff --git
a/lib/netdb.in.h
b/lib/netdb.in.h
index
efbf7b4
..
d789e34
100644
(file)
--- a/
lib/netdb.in.h
+++ b/
lib/netdb.in.h
@@
-1,5
+1,5
@@
/* Provide a netdb.h header file for systems lacking it (read: MinGW).
/* Provide a netdb.h header file for systems lacking it (read: MinGW).
- Copyright (C) 2008-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2008-201
1
Free Software Foundation, Inc.
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
@@
-37,7
+37,8
@@
#ifndef _GL_NETDB_H
#define _GL_NETDB_H
#ifndef _GL_NETDB_H
#define _GL_NETDB_H
-/* Get netdb.h definitions such as struct hostent for MinGW. */
+/* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and
+ 'struct hostent' on MinGW. */
#include <sys/socket.h>
/* The definition of _GL_ARG_NONNULL is copied here. */
#include <sys/socket.h>
/* The definition of _GL_ARG_NONNULL is copied here. */
@@
-51,6
+52,7
@@
# if !@HAVE_STRUCT_ADDRINFO@
# if !@HAVE_STRUCT_ADDRINFO@
+# if !GNULIB_defined_struct_addrinfo
/* Structure to contain information about address of a service provider. */
struct addrinfo
{
/* Structure to contain information about address of a service provider. */
struct addrinfo
{
@@
-63,6
+65,8
@@
struct addrinfo
char *ai_canonname; /* Canonical name for service location. */
struct addrinfo *ai_next; /* Pointer to next in list. */
};
char *ai_canonname; /* Canonical name for service location. */
struct addrinfo *ai_next; /* Pointer to next in list. */
};
+# define GNULIB_defined_struct_addrinfo 1
+# endif
# endif
/* Possible values for `ai_flags' field in `addrinfo' structure. */
# endif
/* Possible values for `ai_flags' field in `addrinfo' structure. */