Kaydet (Commit) 856782e4 authored tarafından Alexandre Vassalotti's avatar Alexandre Vassalotti

Rename the useless AC_INCLUDES_DEFAULT and protect the includes.

This is mostly an aesthetic change.
üst 786c29e3
...@@ -1428,9 +1428,10 @@ AC_CHECK_TYPES(uintptr_t, ...@@ -1428,9 +1428,10 @@ AC_CHECK_TYPES(uintptr_t,
#include <stdint.h> #include <stdint.h>
#endif]) #endif])
AC_CHECK_SIZEOF(off_t, [] AC_CHECK_SIZEOF(off_t, [], [
[AC_INCLUDES_DEFAULT, #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
]) ])
AC_MSG_CHECKING(whether to enable large file support) AC_MSG_CHECKING(whether to enable large file support)
...@@ -1447,9 +1448,13 @@ else ...@@ -1447,9 +1448,13 @@ else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi
AC_CHECK_SIZEOF(time_t, [] AC_CHECK_SIZEOF(time_t, [], [
[AC_INCLUDES_DEFAULT, #ifdef HAVE_SYS_TYPES_H
#include <time.h> #include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
]) ])
# if have pthread_t then define SIZEOF_PTHREAD_T # if have pthread_t then define SIZEOF_PTHREAD_T
...@@ -1466,9 +1471,10 @@ have_pthread_t=no ...@@ -1466,9 +1471,10 @@ have_pthread_t=no
AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes) AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes)
AC_MSG_RESULT($have_pthread_t) AC_MSG_RESULT($have_pthread_t)
if test "$have_pthread_t" = yes ; then if test "$have_pthread_t" = yes ; then
AC_CHECK_SIZEOF(pthread_t, [] AC_CHECK_SIZEOF(pthread_t, [], [
[AC_INCLUDES_DEFAULT, #ifdef HAVE_PTHREAD_H
#include <pthread.h> #include <pthread.h>
#endif
]) ])
fi fi
CC="$ac_save_cc" CC="$ac_save_cc"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment