1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Jelmer Vernooij
71d41a015a libreplace: Add getpeereid implementation. 2012-03-24 16:00:36 +01:00
Jeremy Allison
66c3d5d74b Fix bug found when building on an IPv6-only system by Kai Blin.
When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May 19 02:21:54 CEST 2011 on sn-devel-104
2011-05-19 02:21:54 +02:00
Volker Lendecke
4a653798df fix a typo 2010-05-24 18:25:38 +02:00
Stefan Metzmacher
41cd6f9928 lib/replace: make sure IPV6_V6ONLY is available for IPv6 support
We really on IPV6_V6ONLY being supported.

metze
2010-04-24 20:30:23 +02:00
Stefan Metzmacher
e06cf39502 lib/replace: add replacement for IPV6_V6ONLY on linux systems with broken headers
This is needed on SLES8.

metze
2010-04-24 20:30:17 +02:00
Volker Lendecke
6e7bcaa878 libreplace: Attempt to fix bug 5910, detect a broken getaddrinfo
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-08 09:59:20 +01:00
Matt Kraai
bd40feb1eb Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ 2009-09-14 22:08:12 +02:00
Michael Adam
33d9f46674 libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
This fixes Samba3's double listing of -I options in CFLAGS,
since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS
into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}"
sequence... :-)

Michael
2009-03-23 17:48:23 +01:00
Timur
a3d04991ef build: fix detection of netinet/ip.h on FreeBSD
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Timur
e8aa7169a6 build: format the header check for netinet/ip.h more nicely
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Stefan Metzmacher
099d6f05cd lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
metze
2009-03-16 11:14:52 +01:00
Stefan Metzmacher
082bea67af lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts.

metze
2009-03-11 08:08:14 +01:00
Björn Jacke
dc9387ec42 enable IPv6 support for NetBSD, FreeBSD
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-02-11 10:19:12 -08:00
Michael Adam
86ed67f073 libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)

Michael
2009-01-27 15:48:54 +01:00
Michael Adam
cdab2a4127 libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris

Michael
2009-01-27 12:38:01 +01:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00