summaryrefslogtreecommitdiff
path: root/converters/libwpd/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-18 20:41:50 +0000
committerrillig <rillig>2007-03-18 20:41:50 +0000
commiteed438d7d21eace96c57b81ada53f99a2c2adcee (patch)
tree52ba29d70d53c653fa452a4711e61ea21a7c4f90 /converters/libwpd/patches
parent4998e8f7f9535db61f63f104f06b5b3706e73ea2 (diff)
downloadpkgsrc-eed438d7d21eace96c57b81ada53f99a2c2adcee.tar.gz
... and a patch for NetBSD 3.0.
Diffstat (limited to 'converters/libwpd/patches')
-rw-r--r--converters/libwpd/patches/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/converters/libwpd/patches/patch-aa b/converters/libwpd/patches/patch-aa
new file mode 100644
index 00000000000..a249e61c1a4
--- /dev/null
+++ b/converters/libwpd/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1 2007/03/18 20:41:50 rillig Exp $
+
+NetBSD 3.0 is missing the extern "C" around the definition of
+vsnprintf() in <stdio.h>. In NetBSD 4.99.4, it is fixed.
+
+--- src/lib/WPXString.cpp.orig 2007-03-04 10:44:21.000000000 +0100
++++ src/lib/WPXString.cpp 2007-03-18 21:29:54.000000000 +0100
+@@ -24,6 +24,12 @@
+ * Corel Corporation or Corel Corporation Limited."
+ */
+
++#if defined(__NetBSD__)
++extern "C" {
++#include <stdio.h>
++}
++#endif
++
+ #include "WPXString.h"
+ #include "libwpd_internal.h"
+