r16562 - gnucash/trunk/src/import-export/csv - Get the CSV code to compile on Windows as well.

Christian Stimming cstim at cvs.gnucash.org
Sat Oct 13 07:07:54 EDT 2007


Author: cstim
Date: 2007-10-13 07:07:52 -0400 (Sat, 13 Oct 2007)
New Revision: 16562
Trac: http://svn.gnucash.org/trac/changeset/16562

Modified:
   gnucash/trunk/src/import-export/csv/Makefile.am
   gnucash/trunk/src/import-export/csv/gnc-csv-model.c
Log:
Get the CSV code to compile on Windows as well.


Modified: gnucash/trunk/src/import-export/csv/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/csv/Makefile.am	2007-10-12 22:51:34 UTC (rev 16561)
+++ gnucash/trunk/src/import-export/csv/Makefile.am	2007-10-13 11:07:52 UTC (rev 16562)
@@ -25,6 +25,8 @@
   ${top_builddir}/src/core-utils/libgnc-core-utils.la \
   ${top_builddir}/src/gnc-module/libgnc-module.la \
   ${top_builddir}/lib/stf/libgnc-stf.la \
+  ${top_builddir}/lib/libc/libc-missing.la \
+  ${GOFFICE_LIBS} \
   ${QOF_LIBS} \
   ${GLIB_LIBS}
 
@@ -37,6 +39,7 @@
   -I${top_srcdir}/src/gnome \
   -I${top_srcdir}/src/gnome-utils \
   -I${top_srcdir}/src/import-export \
+  -I${top_srcdir}/lib/libc \
   -I${top_srcdir}/lib \
   ${GNOME_CFLAGS} \
   ${GTKHTML_CFLAGS} \

Modified: gnucash/trunk/src/import-export/csv/gnc-csv-model.c
===================================================================
--- gnucash/trunk/src/import-export/csv/gnc-csv-model.c	2007-10-12 22:51:34 UTC (rev 16561)
+++ gnucash/trunk/src/import-export/csv/gnc-csv-model.c	2007-10-13 11:07:52 UTC (rev 16562)
@@ -8,7 +8,6 @@
 #include <string.h>
 #include <sys/time.h>
 
-#include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <regex.h>
@@ -16,6 +15,9 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <time.h>
+#ifndef HAVE_LOCALTIME_R
+#include "localtime_r.h"
+#endif
 
 static QofLogModule log_module = GNC_MOD_IMPORT;
 



More information about the gnucash-changes mailing list