From: Neal Norwitz Date: Fri, 28 Mar 2008 05:34:59 +0000 (+0000) Subject: Fix compiler warning about finite() missing on Solaris. X-Git-Tag: v2.6a2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fdfaaf9af621d45c849061ea05bd3f2c37232c8;p=python Fix compiler warning about finite() missing on Solaris. --- diff --git a/Objects/complexobject.c b/Objects/complexobject.c index c87b9e8de2..7f40ed6242 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -8,6 +8,10 @@ #include "Python.h" #include "structmember.h" +#ifdef HAVE_IEEEFP_H +#include +#endif + #ifndef WITHOUT_COMPLEX /* Precisions used by repr() and str(), respectively. diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 848a47fe2e..b832f7a483 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -10,6 +10,10 @@ #include #include +#ifdef HAVE_IEEEFP_H +#include +#endif + #include "formatter_string.h" #if !defined(__STDC__) diff --git a/configure b/configure index 052d780f6e..ad9f5629f3 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 61722 . +# From configure.in Revision: 61847 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for python 2.6. # @@ -5419,11 +5419,12 @@ done + for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ fcntl.h grp.h \ -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ +ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ shadow.h signal.h stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ diff --git a/configure.in b/configure.in index 4e5944b0f0..37c127918e 100644 --- a/configure.in +++ b/configure.in @@ -1099,7 +1099,7 @@ dnl AC_MSG_RESULT($cpp_type) AC_HEADER_STDC AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ fcntl.h grp.h \ -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ +ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ shadow.h signal.h stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ diff --git a/pyconfig.h.in b/pyconfig.h.in index 55ab6b239b..425ebeed63 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -300,6 +300,9 @@ /* Define to 1 if you have the `hypot' function. */ #undef HAVE_HYPOT +/* Define to 1 if you have the header file. */ +#undef HAVE_IEEEFP_H + /* Define if you have the 'inet_aton' function. */ #undef HAVE_INET_ATON