[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failure of IPv6 detection for BSD.
From: |
Bruno Haible |
Subject: |
Re: Failure of IPv6 detection for BSD. |
Date: |
Sat, 18 Sep 2010 16:45:09 +0200 |
User-agent: |
KMail/1.9.9 |
Hello Mats,
> in detecting the size of "struct sockaddr_in6" for BSD, in my
> case OpenBSD 4.6, the inclusion of <sys/types.h> is mandatory.
Thanks for the report. The gnulib documentation
<http://www.gnu.org/software/gnulib/manual/html_node/netinet_002fin_002eh.html>
already mentions this problem. With your info I can make it more precise,
see attached patch.
> Thus the test case must read
>
> #include <sys/types.h>
> #include <netinet/in.h>
> ...
All uses of <netinet/in.h> in gnulib's *.m4 files and module descriptions are
preceded with an include of <sys/types.h>. So, either you must be using an
outdated gnulib, or the .m4 file with the configure test that you mention must
come from outside gnulib.
2010-09-18 Bruno Haible <address@hidden>
netinet_in: Doc tweak.
* doc/posix-headers/netinet_in.texi: Mention an affected platform.
Reported by Mats Erik Andersson <address@hidden>.
--- doc/posix-headers/netinet_in.texi.orig Sat Sep 18 16:39:03 2010
+++ doc/posix-headers/netinet_in.texi Sat Sep 18 16:35:26 2010
@@ -11,8 +11,9 @@
This header file is missing on some platforms:
mingw, BeOS.
@item
-This header file is not self-contained on some platforms: it requires
address@hidden<sys/types.h>} to be included first.
+This header file is not self-contained on some platforms (it requires
address@hidden<sys/types.h>} to be included first):
+OpenBSD 4.6.
@end itemize
Portability problems not fixed by Gnulib: