summarylogtreecommitdiffstats
path: root/milter-greylist-4.5.11-warning.patch
blob: 385fc4e2843d8e7f485288ce43058c0f008d0211 (plain)
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
Warning about _BSD_SOURCE being deprecated in favor of _DEFAULT_SOURCE
breaks build with -Werror -Wall

--- configure.ac
+++ configure.ac
@@ -1217,9 +1217,12 @@
 		CFLAGS=$CFLAGS$efl
 		AC_MSG_CHECKING([if DNS resolver is re-entrant])
 		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+				#pragma GCC diagnostic push
+				# pragma GCC diagnostic warning "-Wcpp"
 				#define _BSD_SOURCE
 
 				#include <sys/types.h>
+				#pragma GCC diagnostic pop
 				#include <netinet/in.h>
 				#include <arpa/inet.h>
 				#include <arpa/nameser.h>
--- configure
+++ configure
@@ -8282,9 +8282,12 @@
 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+				#pragma GCC diagnostic push
+				# pragma GCC diagnostic warning "-Wcpp"
 				#define _BSD_SOURCE
 
 				#include <sys/types.h>
+				#pragma GCC diagnostic pop
 				#include <netinet/in.h>
 				#include <arpa/inet.h>
 				#include <arpa/nameser.h>