File: fix-include.patch

package info (click to toggle)
libspf2 1.2.10-8.4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,712 kB
  • sloc: sh: 11,504; ansic: 11,396; makefile: 171; perl: 18
file content (17 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix FTBFS with -Werror=implicit-function-declaration
  Include string.h in spf_utils.c to get a declaration for memset().
Author: Michael Hudson-Doyle <michael.hudson@ubuntu.com>
Origin: vendor
Bug-Debian: https://bugs.debian.org/1065792
Reviewed-By: Andreas Metzler <ametzler@debian.org>

--- a/src/libspf2/spf_utils.c
+++ b/src/libspf2/spf_utils.c
@@ -19,6 +19,7 @@
 #ifdef STDC_HEADERS
 # include <stdlib.h>	   /* malloc / free */
 # include <ctype.h>		/* isupper / tolower */
+# include <string.h>       /* memset */
 #endif
 
 #ifdef HAVE_MEMORY_H