[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-02-18 11:33:12
Message-ID: 20050218113312.3D8FF1BB8B () office ! kde ! org
[Download RAW message or body]

CVS commit by adridg: 

Check for headers before using them (compiles fine on Solaris without cdefs
and err).

BUG: 99680


  M +1 -1      configure.in.in   1.43
  M +6 -0      libkholidays/lunarphase.cpp   1.3


--- kdepim/configure.in.in  #1.42:1.43
@@ -2,5 +2,5 @@
 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h sys/sysctl.h sys/param.h sys/time.h sys/types.h unistd.h \
values.h sys/limits.h) +AC_CHECK_HEADERS(fcntl.h sys/sysctl.h sys/param.h sys/time.h \
sys/types.h unistd.h values.h sys/limits.h err.h sys/cdefs.h)  
 AC_CHECK_SETENV

--- kdepim/libkholidays/lunarphase.cpp  #1.2:1.3
@@ -32,4 +32,6 @@
 */
 
+#include "config.h"
+
 #include <kglobal.h>
 #include <klocale.h>
@@ -182,5 +184,7 @@ LunarPhase::Phase LunarPhase::phase( con
  */
 
+#if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
+#endif
 
 /*
@@ -198,5 +202,7 @@ LunarPhase::Phase LunarPhase::phase( con
 
 #include <ctype.h>
+#if HAVE_ERR_H
 #include <err.h>
+#endif
 #include <math.h>
 #include <string.h>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic