From 598aafe9b3d6302e15a6a990e911c0fd3c23f634 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Jul 2005 07:35:48 +0000 Subject: [PATCH] r8453: my solaris10 box doesn't have math.h maybe sun isn't very good at maths? (This used to be commit ab67c8b2b7847ecad803dfc04a66007b8f6b4abe) --- source4/build/m4/rewrite.m4 | 2 +- source4/lib/appweb/mpr/miniMpr.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4 index 71cb95cac28..5998801f0c6 100644 --- a/source4/build/m4/rewrite.m4 +++ b/source4/build/m4/rewrite.m4 @@ -56,7 +56,7 @@ AC_HEADER_TIME AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(arpa/inet.h sys/select.h fcntl.h sys/fcntl.h sys/time.h) AC_CHECK_HEADERS(utime.h grp.h sys/id.h limits.h memory.h net/if.h) -AC_CHECK_HEADERS(compat.h) +AC_CHECK_HEADERS(compat.h math.h) AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h) AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h) AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h) diff --git a/source4/lib/appweb/mpr/miniMpr.h b/source4/lib/appweb/mpr/miniMpr.h index 8b28472826c..6fc4d50c31e 100644 --- a/source4/lib/appweb/mpr/miniMpr.h +++ b/source4/lib/appweb/mpr/miniMpr.h @@ -74,8 +74,9 @@ #if QNX4 #include #endif +#ifdef HAVE_MATH_H #include - +#endif /********************************** Defines ***********************************/ #ifdef __cplusplus -- 2.34.1