summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4e14ca)
raw | patch | inline | side by side (parent: f4e14ca)
author | Dennis Stosberg <dennis@stosberg.net> | |
Tue, 15 Aug 2006 09:01:25 +0000 (11:01 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Aug 2006 09:57:42 +0000 (02:57 -0700) |
On Solaris and the BSDs the definition of "struct sockaddr_storage"
is not available from "netinet/in.h". On Solaris "sys/socket.h" is
enough, at least OpenBSD needs "sys/types.h", too.
Using "sys/types.h" and "sys/socket.h" seems to be a more portable
way.
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
is not available from "netinet/in.h". On Solaris "sys/socket.h" is
enough, at least OpenBSD needs "sys/types.h", too.
Using "sys/types.h" and "sys/socket.h" seems to be a more portable
way.
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index e890131c46a2036d5d720a184b00571a46428b9d..0321d437d981cbdc9ce616d11ec83700e4c998fb 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# sockaddr_storage.
AC_CHECK_TYPE(struct sockaddr_storage,
[NO_SOCKADDR_STORAGE=],
-[NO_SOCKADDR_STORAGE=YesPlease],
-[#include <netinet/in.h>])
+[NO_SOCKADDR_STORAGE=YesPlease],[
+#include <sys/types.h>
+#include <sys/socket.h>
+])
AC_SUBST(NO_SOCKADDR_STORAGE)
#
# Define NO_IPV6 if you lack IPv6 support and getaddrinfo().