File: 26-Add-missing-include.patch

package info (click to toggle)
bsd-mailx 8.1.2-0.20220412cvs-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,072 kB
  • sloc: ansic: 7,039; makefile: 60; sh: 23
file content (22 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (2)
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 96935f6..8c2eae4 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