svn commit: lorikeet r574 - in trunk/heimdal/cf: .
lha at samba.org
lha at samba.org
Sat Oct 7 17:32:47 GMT 2006
Author: lha
Date: 2006-10-07 17:32:47 +0000 (Sat, 07 Oct 2006)
New Revision: 574
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=574
Log:
merge build fixes from heimdal cvs 20061008
Modified:
trunk/heimdal/cf/have-struct-field.m4
Changeset:
Modified: trunk/heimdal/cf/have-struct-field.m4
===================================================================
--- trunk/heimdal/cf/have-struct-field.m4 2006-10-07 17:24:03 UTC (rev 573)
+++ trunk/heimdal/cf/have-struct-field.m4 2006-10-07 17:32:47 UTC (rev 574)
@@ -1,4 +1,4 @@
-dnl $Id: have-struct-field.m4,v 1.9 2004/08/26 12:35:42 joda Exp $
+dnl $Id: have-struct-field.m4,v 1.10 2006/10/07 17:31:56 lha Exp $
dnl
dnl check for fields in a structure
dnl
@@ -7,9 +7,11 @@
AC_DEFUN([AC_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]],[[$1 x; x.$2]])],
-[cache_val=yes],
-[cache_val=no])])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$3]],
+ [[$1 x; memset(&x, 0, sizeof(x)); x.$2]])],
+ [cache_val=yes],
+ [cache_val=no])
+])
if test "$cache_val" = yes; then
define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
AC_DEFINE(foo, 1, [Define if $1 has field $2.])
More information about the samba-cvs
mailing list