]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Without stdlib.h we don't get a prototype for free().
authorAndrew Bartlett <abartlet@samba.org>
Tue, 17 Jun 2008 12:45:29 +0000 (22:45 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 17 Jun 2008 12:45:29 +0000 (22:45 +1000)
This test fails if GCC emits any warnings (presumably to detect the
function propertly), but unless we include this message then free()
fail.  Why we need to call free in a configure test is probably
something to blame on valgrind...

Andrew Bartlett
(This used to be commit d013f6fadc3e80fabb4a1784207dabc84f9b7dc2)

source3/configure.in

index 7ac13398c9df8b879c459e263991009b9b26e25d..e25c213d03b53f0528d800da3713e0fd8e3770e0 100644 (file)
@@ -3779,6 +3779,7 @@ if test x"$with_ads_support" != x"no"; then
     AC_CACHE_CHECK([for krb5_error_code krb5_enctype_to_string(krb5_context context, krb5_enctype enctype, char **str)],
         smb_krb5_cv_enctype_to_string_takes_krb5_context_arg,[
        AC_TRY_RUN_STRICT([
+               #include <stdlib.h>
                #include <krb5.h>
                int main(void) {
                        krb5_context context = NULL;