/* Get address information.
- Copyright (C) 1996-2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1996-2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Simon Josefsson <simon@josefsson.org>.
This program is free software; you can redistribute it and/or modify
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef GETADDRINFO_H
# define GETADDRINFO_H
-/* Get getaddrinfo declarations, if available. */
+/* Get getaddrinfo declarations, if available. Also get 'socklen_t',
+ and 'struct sockaddr' via sys/types.h which are used below. */
+# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# if defined HAVE_GETADDRINFO && !HAVE_GETADDRINFO
-/* Get socklen_t, struct sockaddr. */
-# include <sys/types.h>
-
/* Structure to contain information about address of a service provider. */
struct addrinfo
{