summarylogtreecommitdiffstats
path: root/milter-greylist-4.5.11-warning.patch
blob: 8a35c384254054c033242e76521d6199ee5bcfbe (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
@@ -1240,9 +1240,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
@@ -8390,9 +8390,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>