Skip to content

Commit e8ebe13

Browse files
committed
Always include the stddef.h header.
Signed-off-by: George Bosilca <[email protected]>
1 parent 5f443ec commit e8ebe13

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

configure.ac

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,10 +1366,13 @@ OPAL_SETUP_WRAPPER_FINAL
13661366
# autoconf macro defines in mpi.h. Since AC sometimes changes whether
13671367
# things are defined as null tokens or an integer result, two projects
13681368
# with different versions of AC can cause problems.
1369-
if test $ac_cv_header_stdc = yes; then
1370-
AC_DEFINE(OPAL_STDC_HEADERS, 1,
1371-
[Do not use outside of mpi.h. Define to 1 if you have the ANSI C header files.])
1372-
fi
1369+
1370+
# According to the autoconf 2.67 documentation the AC_HEADER_STDC macro,
1371+
# and therefore the ac_cv_header_stdc cache variable, is obsolescent, as
1372+
# current systems have conforming header files. Instead of removing the
1373+
# protection completely, let's just make sure it is always on.
1374+
AC_DEFINE(OPAL_STDC_HEADERS, 1,
1375+
[Do not use outside of mpi.h. Define to 1 if you have the ANSI C header files.])
13731376
if test $ac_cv_header_sys_time_h = yes ; then
13741377
AC_DEFINE(OPAL_HAVE_SYS_TIME_H, 1,
13751378
[Do not use outside of mpi.h. Define to 1 if you have the <sys/time.h> header file.])

0 commit comments

Comments
 (0)