From: Andrew Bartlett Date: Tue, 17 Jun 2008 12:45:29 +0000 (+1000) Subject: Without stdlib.h we don't get a prototype for free(). X-Git-Tag: samba-4.0.0alpha6~801^2~1025 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=086de4ddb522dd6d1ce927da2e2c14ed0ffca10f;p=thirdparty%2Fsamba.git Without stdlib.h we don't get a prototype for free(). 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) --- diff --git a/source3/configure.in b/source3/configure.in index 7ac13398c9d..e25c213d03b 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -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 #include int main(void) { krb5_context context = NULL;