From: Simon Josefsson Date: Sat, 2 Apr 2005 08:09:23 +0000 (+0000) Subject: Fix OpenBSD compilation failure, inspired by tiny patch from Yoann X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41a3b24a380fa1e014b574760f06029710b70d4;p=pspp Fix OpenBSD compilation failure, inspired by tiny patch from Yoann Vandoorselaere . --- 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 {