[Gnucash-changes] r13527 - gnucash/trunk - Add configure test for
sys/times.h and corrected guid.c to check for that.
Andreas Köhler
andi5 at cvs.gnucash.org
Tue Mar 7 18:15:06 EST 2006
Author: andi5
Date: 2006-03-07 18:15:04 -0500 (Tue, 07 Mar 2006)
New Revision: 13527
Trac: http://svn.gnucash.org/trac/changeset/13527
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/configure.in
gnucash/trunk/lib/libqof/qof/guid.c
Log:
Add configure test for sys/times.h and corrected guid.c to check for that.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-07 22:12:57 UTC (rev 13526)
+++ gnucash/trunk/ChangeLog 2006-03-07 23:15:04 UTC (rev 13527)
@@ -1,3 +1,9 @@
+2006-03-08 Andreas Köhler <andi5.py at gmx.net>
+
+ * 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 <stimming at tuhh.de>
* lib/libqof/qof/guid.c: Make seed collection parts that depend on
Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in 2006-03-07 22:12:57 UTC (rev 13526)
+++ gnucash/trunk/configure.in 2006-03-07 23:15:04 UTC (rev 13527)
@@ -91,7 +91,7 @@
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,,[
Modified: gnucash/trunk/lib/libqof/qof/guid.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/guid.c 2006-03-07 22:12:57 UTC (rev 13526)
+++ gnucash/trunk/lib/libqof/qof/guid.c 2006-03-07 23:15:04 UTC (rev 13527)
@@ -37,7 +37,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
-#ifdef HAVE_TIMES
+#ifdef HAVE_SYS_TIMES_H
# include <sys/times.h>
#endif
#include <time.h>
@@ -288,8 +288,8 @@
{
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 @@
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);
More information about the gnucash-changes
mailing list