df3570ca032f70f80474fc0e5a27f45a18c5e646
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / samba / 0002-getaddrinfo.patch
1 Patch forward-ported from OpenWRT.
2 Don't check for buggy getaddrinfo() assume it's safe if it's present.
3
4 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5
6 diff -Nura samba-3.6.8.orig/source3/configure samba-3.6.8/source3/configure
7 --- samba-3.6.8.orig/source3/configure  2012-09-14 05:19:52.000000000 -0300
8 +++ samba-3.6.8/source3/configure       2012-09-25 20:31:57.861743235 -0300
9 @@ -13269,10 +13269,7 @@
10         # see bug 5910, use our replacements if we detect
11         # a broken system.
12         if test "$cross_compiling" = yes; then :
13 -  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15 -as_fn_error $? "cannot run test program while cross compiling
16 -See \`config.log' for more details" "$LINENO" 5; }
17 +               $as_echo "assuming valid getaddrinfo without bug 5910" >&2
18  else
19    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20  /* end confdefs.h.  */