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 #include @@ -182,5 +184,7 @@ LunarPhase::Phase LunarPhase::phase( con */ +#if HAVE_SYS_CDEFS_H #include +#endif /* @@ -198,5 +202,7 @@ LunarPhase::Phase LunarPhase::phase( con #include +#if HAVE_ERR_H #include +#endif #include #include