From e49d29690b0e9eaf7dd19a91ec99b37927774aea Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Thu, 7 Sep 2006 11:08:25 +0000 Subject: [PATCH] Need lib/libc for missing libc function. Need to include localtime_r to get the declaration git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14812 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/Makefile.am | 2 ++ src/gnome-utils/gnc-date-format.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/gnome-utils/Makefile.am b/src/gnome-utils/Makefile.am index 4145a9df64..f6d5dec309 100644 --- a/src/gnome-utils/Makefile.am +++ b/src/gnome-utils/Makefile.am @@ -17,6 +17,7 @@ AM_CFLAGS = \ -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 @@ libgncmod_gnome_utils_la_LIBADD = \ ${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} \ diff --git a/src/gnome-utils/gnc-date-format.c b/src/gnome-utils/gnc-date-format.c index a088e58d68..5e2a02e579 100644 --- a/src/gnome-utils/gnc-date-format.c +++ b/src/gnome-utils/gnc-date-format.c @@ -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