diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-05-08 11:04:18 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-05-08 11:04:18 (GMT) |
commit | cbf54b1e7ea9e2b37a2385385f16196fe3943ca8 (patch) | |
tree | 1fe53d158600e58f3dc9413ec82405fc6f43df77 /configure.in | |
parent | c511b47fb68ebdb7a83887b2ed957754863a46d7 (diff) | |
download | cpython-cbf54b1e7ea9e2b37a2385385f16196fe3943ca8.zip cpython-cbf54b1e7ea9e2b37a2385385f16196fe3943ca8.tar.gz cpython-cbf54b1e7ea9e2b37a2385385f16196fe3943ca8.tar.bz2 |
configure.in: Avoid autoconf warning: Assume C89 semantics that
RETSIGTYPE is always void (issue #8510).
pyconfig.h: Regenerate
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/configure.in b/configure.in index cdd69d0..48c4eb3 100644 --- a/configure.in +++ b/configure.in @@ -1474,18 +1474,7 @@ EOF AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_PID_T -AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void. -Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl -AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM([#include <sys/types.h> -#include <signal.h> -], - [return *(signal (0, 0)) (0) == 1;])], - [ac_cv_type_signal=int], - [ac_cv_type_signal=void])]) -AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers - (`int' or `void').]) - +AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is always void]) AC_TYPE_SIZE_T AC_TYPE_UID_T AC_TYPE_UINT32_T |