r14812 - gnucash/trunk/src/gnome-utils - Need lib/libc for missing libc function. Need to include localtime_r to get the declaration

Christian Stimming cstim at cvs.gnucash.org
Thu Sep 7 07:08:26 EDT 2006


Author: cstim
Date: 2006-09-07 07:08:25 -0400 (Thu, 07 Sep 2006)
New Revision: 14812
Trac: http://svn.gnucash.org/trac/changeset/14812

Modified:
   gnucash/trunk/src/gnome-utils/Makefile.am
   gnucash/trunk/src/gnome-utils/gnc-date-format.c
Log:
Need lib/libc for missing libc function. Need to include localtime_r to get the declaration

Modified: gnucash/trunk/src/gnome-utils/Makefile.am
===================================================================
--- gnucash/trunk/src/gnome-utils/Makefile.am	2006-09-07 10:51:38 UTC (rev 14811)
+++ gnucash/trunk/src/gnome-utils/Makefile.am	2006-09-07 11:08:25 UTC (rev 14812)
@@ -17,6 +17,7 @@
   -I${top_srcdir}/src/network-utils \
   -I${top_srcdir}/src/app-utils \
   -I${top_srcdir}/src \
+  -I${top_srcdir}/lib/libc \
   ${GLIB_CFLAGS} \
   ${GLADE_CFLAGS} \
   ${GTK_CFLAGS} \
@@ -176,6 +177,7 @@
   ${top_builddir}/src/calculation/libgncmod-calculation.la \
   ${top_builddir}/src/network-utils/libgncmod-network-utils.la \
   ${top_builddir}/src/app-utils/libgncmod-app-utils.la \
+  $(top_builddir)/lib/libc/libc-missing.la \
   ${GNOME_LIBS} \
   ${GNOME_PRINT_LIBS} \
   ${GTKHTML_LIBS} \

Modified: gnucash/trunk/src/gnome-utils/gnc-date-format.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-date-format.c	2006-09-07 10:51:38 UTC (rev 14811)
+++ gnucash/trunk/src/gnome-utils/gnc-date-format.c	2006-09-07 11:08:25 UTC (rev 14812)
@@ -41,6 +41,10 @@
 #include "gnc-date-format.h"
 #include "dialog-utils.h"
 
+#ifndef HAVE_LOCALTIME_R
+# include "localtime_r.h"
+#endif
+
 /* Perhaps it's better just to use MAX_DATE_LENGTH defined in gnc-date.h */
 #define MAX_DATE_LEN 80
 



More information about the gnucash-changes mailing list