From 478120ecb44ff75bf687f73549c0d189b419dc39 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 7 Jul 2015 11:04:07 +0900 Subject: [PATCH] configury: fix alignment check of bool when cross-compiling --- config/c_get_alignment.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/c_get_alignment.m4 b/config/c_get_alignment.m4 index dcfac1dac2..4ec7bf7c1b 100644 --- a/config/c_get_alignment.m4 +++ b/config/c_get_alignment.m4 @@ -12,6 +12,8 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl All rights reserved. dnl Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved. dnl Copyright (c) 2014-2015 Intel, Inc. All rights reserved. +dnl Copyright (c) 2015 Research Organization for Information Science +dnl and Technology (RIST). All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow @@ -53,6 +55,8 @@ AC_DEFUN([OPAL_C_GET_ALIGNMENT],[ _AC_COMPUTE_INT([(long int) offsetof (opal__type_alignof_, y)], [AS_TR_SH([opal_cv_c_align_$1])], [AC_INCLUDES_DEFAULT +#include + #ifndef offsetof # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) #endif