Package: bsd-mailx / 8.1.2-0.20141216cvs-2

01-Fix-includes.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From: Robert Luberda <robert@debian.org>
Date: Sun, 6 Nov 2011 23:03:12 +0100
Subject: 01 Fix includes.

---
 def.h   | 4 +++-
 edit.c  | 6 ++++++
 list.c  | 3 +++
 names.c | 1 +
 send.c  | 1 +
 5 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/def.h b/def.h
index 322be15..3772892 100644
--- a/def.h
+++ b/def.h
@@ -52,9 +52,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <bsd/string.h>
 #include <termios.h>
 #include <unistd.h>
-#include <vis.h>
+#include <bsd/vis.h>
+#include <stdarg.h>
 #include "pathnames.h"
 
 #define	APPEND				/* New mail goes to end of mailbox */
diff --git a/edit.c b/edit.c
index cf14a37..d7a4732 100644
--- a/edit.c
+++ b/edit.c
@@ -30,6 +30,12 @@
  * SUCH DAMAGE.
  */
 
+#ifdef DEBIAN
+/* needed for asprintf */
+#define _GNU_SOURCE
+#include <string.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/wait.h>
 
diff --git a/list.c b/list.c
index 6be696f..58f326f 100644
--- a/list.c
+++ b/list.c
@@ -30,6 +30,9 @@
  * SUCH DAMAGE.
  */
 
+#define _GNU_SOURCE // for strcasestr
+#include <string.h> // for strcasestr
+
 #include "rcv.h"
 #include <ctype.h>
 #include "extern.h"
diff --git a/names.c b/names.c
index 87905aa..a489337 100644
--- a/names.c
+++ b/names.c
@@ -38,6 +38,7 @@
 
 #include "rcv.h"
 #include <fcntl.h>
+#include <time.h>
 #include "extern.h"
 
 /*
diff --git a/send.c b/send.c
index f8fdac9..77056f4 100644
--- a/send.c
+++ b/send.c
@@ -30,6 +30,7 @@
  * SUCH DAMAGE.
  */
 
+#include <time.h>
 #include "rcv.h"
 #include "extern.h"