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
This commit is contained in:
Christian Stimming 2006-09-07 11:08:25 +00:00
parent 8da68a09a1
commit e49d29690b
2 changed files with 6 additions and 0 deletions

View File

@ -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} \

View File

@ -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