summarylogtreecommitdiffstats
path: root/milter-greylist-4.5.11-warning.patch
blob: 2c525bfa25068b656aff459b313dbc44780d6211 (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
@@ -1228,9 +1228,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
@@ -8298,9 +8298,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>