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

26-Add-missing-include.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
From: Robert Luberda <robert@debian.org>
Date: Mon, 25 Aug 2014 21:41:11 +0200
Subject: 26 Add missing include

Add #include <bsd/err.h> to fix implicit declaration of
function 'warnc' warning.
---
 lex.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lex.c b/lex.c
index d226929..af9a071 100644
--- a/lex.c
+++ b/lex.c
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include "extern.h"
+#include <bsd/err.h>
 
 /*
  * Mail -- a mail program