File wv-1.2.2-fiximplicit.patch of Package wv

Index: wv-1.2.2/decompresswmf.c
===================================================================
--- wv-1.2.2.orig/decompresswmf.c
+++ wv-1.2.2/decompresswmf.c
@@ -17,6 +17,7 @@
  * 02111-1307, USA.
  */
 
+#define _POSIX_SOURCE
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
Index: wv-1.2.2/wvRTF.c
===================================================================
--- wv-1.2.2.orig/wvRTF.c
+++ wv-1.2.2/wvRTF.c
@@ -17,6 +17,8 @@
  * 02111-1307, USA.
  */
 
+#define _BSD_SOURCE
+#define _POSIX_SOURCE
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -192,7 +194,7 @@ output_rtfUserData (rtfUserData * ud)
     rtf_output_char ('{');
 
     /* font color */
-    rtf_output (rtfColors[ud->cCol]);
+    rtf_output ("%s",rtfColors[ud->cCol]);
 
     /* font face */
     rtf_output ("\\f%d", ud->cFont);
Index: wv-1.2.2/field.c
===================================================================
--- wv-1.2.2.orig/field.c
+++ wv-1.2.2/field.c
@@ -17,6 +17,7 @@
  * 02111-1307, USA.
  */
 
+#define _BSD_SOURCE
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
Index: wv-1.2.2/wvConfig.c
===================================================================
--- wv-1.2.2.orig/wvConfig.c
+++ wv-1.2.2/wvConfig.c
@@ -17,6 +17,7 @@
  * 02111-1307, USA.
  */
 
+#define _BSD_SOURCE
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
openSUSE Build Service is sponsored by