diff --git a/ChangeLog b/ChangeLog index 9393a0062e..725232a56b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-08 Andreas Köhler + + * configure.in: + * lib/libqof/qof/guid.c: Add configure test for sys/times.h and + corrected guid.c to check for that. + 2006-03-07 Christian Stimming * lib/libqof/qof/guid.c: Make seed collection parts that depend on diff --git a/configure.in b/configure.in index 6b8da12f25..d58d111bfb 100644 --- a/configure.in +++ b/configure.in @@ -91,7 +91,7 @@ AC_C_BIGENDIAN AC_PROG_MAKE_SET AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h) +AC_CHECK_HEADERS(limits.h sys/times.h) AC_CHECK_FUNCS(stpcpy memcpy timegm towupper) AC_CHECK_FUNCS(setenv,,[ AC_CHECK_FUNCS(putenv,,[ diff --git a/lib/libqof/qof/guid.c b/lib/libqof/qof/guid.c index b125a18ce9..87b186481b 100644 --- a/lib/libqof/qof/guid.c +++ b/lib/libqof/qof/guid.c @@ -37,7 +37,7 @@ #include #include #include -#ifdef HAVE_TIMES +#ifdef HAVE_SYS_TIMES_H # include #endif #include @@ -288,8 +288,8 @@ init_from_time(void) { size_t total; time_t t_time; +#ifdef HAVE_SYS_TIMES_H clock_t clocks; -#ifdef HAVE_TIMES struct tms tms_buf; #endif @@ -299,7 +299,7 @@ init_from_time(void) md5_process_bytes(&t_time, sizeof(t_time), &guid_context); total += sizeof(t_time); -#ifdef HAVE_TIMES +#ifdef HAVE_SYS_TIMES_H clocks = times(&tms_buf); md5_process_bytes(&clocks, sizeof(clocks), &guid_context); md5_process_bytes(&tms_buf, sizeof(tms_buf), &guid_context);