File psiconv-0.9.8-windows.patch of Package mingw32-psiconv
--- psiconv-0.9.8/lib/psiconv/configuration.c 2005-11-15 16:08:08.000000000 +0100
+++ psiconv-0.9.8/lib/psiconv/configuration.c 2009-12-14 04:52:40.000000000 +0100
@@ -336,7 +336,7 @@
pathptr = path;
while (strlen(pathptr)) {
/* Isolate the next filename */
- filename_len = (index(pathptr,':')?(index(pathptr,':') - pathptr):
+ filename_len = (strchr(pathptr,':')?(strchr(pathptr,':') - pathptr):
strlen(pathptr));
filename = malloc(filename_len + 1);
filename = strncpy(filename,pathptr,filename_len);
--- psiconv-0.9.8/lib/psiconv/Makefile.am 2004-04-30 00:09:30.000000000 +0200
+++ psiconv-0.9.8/lib/psiconv/Makefile.am 2009-12-14 04:53:07.000000000 +0100
@@ -10,7 +10,7 @@
generate_simple.c generate_layout.c generate_driver.c \
generate_common.c generate_texted.c generate_page.c \
generate_word.c generate_image.c
-libpsiconv_la_LDFLAGS = -version-info 10:2:4
+libpsiconv_la_LDFLAGS = -version-info 10:2:4 -no-undefined
libpsiconv_la_LIBADD = ../../compat/libcompat.la
libpsiconv_la_CFLAGS = -DPSICONVETCDIR=\"@PSICONVETCDIR@\"