SHA256
6
0
forked from pool/wv
wv/0014-Add-missing-include.patch

102 lines
2.2 KiB
Diff

From: Sebastian Ramacher <sramacher@debian.org>
Date: Wed, 13 Mar 2024 23:24:29 +0100
Subject: Add missing include
---
decompresswmf.c | 2 ++
field.c | 1 +
wvConfig.c | 1 +
wvRTF.c | 1 +
wvSummary.c | 1 +
wvWare.c | 1 +
wvparse.c | 3 +++
7 files changed, 10 insertions(+)
diff --git a/decompresswmf.c b/decompresswmf.c
index ace7855..0a918dc 100644
--- a/decompresswmf.c
+++ b/decompresswmf.c
@@ -17,6 +17,8 @@
* 02111-1307, USA.
*/
+#define _POSIX_C_SOURCE 200809L
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/field.c b/field.c
index 8e56c37..0b21f48 100644
--- a/field.c
+++ b/field.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include "wv.h"
diff --git a/wvConfig.c b/wvConfig.c
index 03ffccc..e44f4f6 100644
--- a/wvConfig.c
+++ b/wvConfig.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <math.h>
#include <ctype.h>
#include "wv.h"
diff --git a/wvRTF.c b/wvRTF.c
index 7253e53..1cea05b 100644
--- a/wvRTF.c
+++ b/wvRTF.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
+#include <strings.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/wvSummary.c b/wvSummary.c
index 980b856..27b5fed 100644
--- a/wvSummary.c
+++ b/wvSummary.c
@@ -33,6 +33,7 @@
#include <gsf/gsf-msole-utils.h>
#include <gsf/gsf-docprop-vector.h>
#include <gsf/gsf-meta-names.h>
+#include <gsf/gsf-doc-meta-data.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/wvWare.c b/wvWare.c
index 1165175..55ebcb0 100644
--- a/wvWare.c
+++ b/wvWare.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
+#include <strings.h>
#include <unistd.h>
#include "wv.h"
#include "getopt.h"
diff --git a/wvparse.c b/wvparse.c
index 250000b..caacf61 100644
--- a/wvparse.c
+++ b/wvparse.c
@@ -35,6 +35,9 @@
#include <gsf/gsf-input-stdio.h>
#include <gsf/gsf-utils.h>
+int wvOLEDecode_gsf (wvParseStruct * ps, GsfInput *path, wvStream ** mainfd, wvStream ** tablefd0,
+ wvStream ** tablefd1, wvStream ** data, wvStream ** summary);
+
int
wvInit (void)
{