From ed0681ffab2de3067b73400810d91bf2a7b53562 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 2 Oct 2006 15:24:15 +0000 Subject: [PATCH] Guard uintptr_t test with HAVE_STDINT_H, test for stdint.h. --- Include/pyport.h | 4 ++++ configure | 9 ++++++--- configure.in | 6 ++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Include/pyport.h b/Include/pyport.h index 2440c55f7a25..fc5ca5f98577 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -3,6 +3,10 @@ #include "pyconfig.h" /* include for defines */ +#ifdef HAVE_STDINT_H +#include +#endif + /************************************************************************** Symbols and macros to supply platform-independent interfaces to basic C language & library operations whose spellings vary across platforms. diff --git a/configure b/configure index 69a3da90dd50..5bc56dcd718a 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 52044 . +# From configure.in Revision: 52088 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for python 2.4. # @@ -4563,11 +4563,12 @@ done + for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \ libintl.h ncurses.h poll.h pthread.h \ -stropts.h termios.h thread.h \ +stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ sys/modem.h \ @@ -9468,7 +9469,9 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#ifdef HAVE_STDINT_H + #include + #endif int main () diff --git a/configure.in b/configure.in index d5edd3d36b80..45af720e9f86 100644 --- a/configure.in +++ b/configure.in @@ -986,7 +986,7 @@ dnl AC_MSG_RESULT($cpp_type) AC_HEADER_STDC AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \ libintl.h ncurses.h poll.h pthread.h \ -stropts.h termios.h thread.h \ +stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ sys/modem.h \ @@ -1102,7 +1102,9 @@ fi AC_CHECK_TYPES(uintptr_t, [AC_CHECK_SIZEOF(uintptr_t, 4)], - [], [#include ]) + [], [#ifdef HAVE_STDINT_H + #include + #endif]) # Hmph. AC_CHECK_SIZEOF() doesn't include . -- 2.47.3