X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fcf%2Fhave-struct-field.m4;h=98a976b8b52b180ec1644e7a7b102a75f853e197;hp=36f75c9899d082168b8e4eb1b8671a22075ce3e2;hb=fd5aa52ef8ce719502f970ab93ffde07d7ed4780;hpb=b60754ed1c1f2d1593ffc35a5febf39a50404134 diff --git a/src/cf/have-struct-field.m4 b/src/cf/have-struct-field.m4 index 36f75c9..98a976b 100644 --- a/src/cf/have-struct-field.m4 +++ b/src/cf/have-struct-field.m4 @@ -4,7 +4,9 @@ dnl should be shipping AC_ macros. AC_DEFUN([OPENAFS_HAVE_STRUCT_FIELD], [ define(cache_val, translit(ac_cv_type_$1_$2, [A-Z ], [a-z_])) AC_CACHE_CHECK([for $2 in $1], cache_val,[ -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$3]], +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + $3 + #include ]], [[$1 x; memset(&x, 0, sizeof(x)); x.$2]])], [cache_val=yes], [cache_val=no])