1
1

configury: fix alignment check of bool when cross-compiling

Этот коммит содержится в:
Gilles Gouaillardet 2015-07-07 11:04:07 +09:00
родитель 409874eb47
Коммит 478120ecb4

Просмотреть файл

@ -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 <stdbool.h>
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif