From a41a3b24a380fa1e014b574760f06029710b70d4 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sat, 2 Apr 2005 08:09:23 +0000 Subject: [PATCH] Fix OpenBSD compilation failure, inspired by tiny patch from Yoann Vandoorselaere . --- lib/getaddrinfo.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h index 59553234e9..423e9c1616 100644 --- 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 { -- 2.30.2