# HG changeset patch # User Simon Josefsson # Date 1112429363 0 # Node ID 2a85a3de74c0641353a32f9082cca33186960709 # Parent f5794b0165c2dd52a310459aa4b3579277ebebf6 Fix OpenBSD compilation failure, inspired by tiny patch from Yoann Vandoorselaere . diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h --- a/lib/getaddrinfo.h +++ b/lib/getaddrinfo.h @@ -1,5 +1,5 @@ /* 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 . This program is free software; you can redistribute it and/or modify @@ -19,15 +19,14 @@ #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 # include # include # if defined HAVE_GETADDRINFO && !HAVE_GETADDRINFO -/* Get socklen_t, struct sockaddr. */ -# include - /* Structure to contain information about address of a service provider. */ struct addrinfo {