Mercurial > hg > octave-kai > gnulib-hg
changeset 5784:2a85a3de74c0
Fix OpenBSD compilation failure, inspired by tiny patch from Yoann
Vandoorselaere <yoann@prelude-ids.org>.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Sat, 02 Apr 2005 08:09:23 +0000 |
parents | f5794b0165c2 |
children | 8cecd2398182 |
files | lib/getaddrinfo.h |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 <simon@josefsson.org>. 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 <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 {