Blame SOURCES/extensions-Add-macro-_DEFAULT_SOURCE.patch

43df5c
From 3dcd69e5655a2485d39efd64b5bd9fd38fdb4a04 Mon Sep 17 00:00:00 2001
43df5c
From: Phil Sutter <psutter@redhat.com>
43df5c
Date: Fri, 15 Mar 2019 17:52:42 +0100
43df5c
Subject: [PATCH] extensions: Add macro _DEFAULT_SOURCE.
43df5c
43df5c
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1525980
43df5c
Upstream Status: iptables commit 27de281d8aca8
43df5c
43df5c
commit 27de281d8aca84e3c841b3ae72a17616b1382ac4
43df5c
Author: Varsha Rao <rvarsha016@gmail.com>
43df5c
Date:   Thu Dec 21 09:05:45 2017 +0530
43df5c
43df5c
    extensions: Add macro _DEFAULT_SOURCE.
43df5c
43df5c
    Define _DEFAULT_SOURCE as _BSD_SOURCE is deprecated.
43df5c
    https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes
43df5c
43df5c
    This patch fixes the following warning:
43df5c
43df5c
    warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
43df5c
    _DEFAULT_SOURCE" [-Wcpp]
43df5c
     # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
43df5c
     # _DEFAULT_SOURCE"
43df5c
43df5c
    Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
43df5c
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
43df5c
43df5c
Signed-off-by: Phil Sutter <psutter@redhat.com>
43df5c
---
43df5c
 extensions/libxt_hashlimit.c | 1 +
43df5c
 extensions/libxt_limit.c     | 1 +
43df5c
 2 files changed, 2 insertions(+)
43df5c
43df5c
diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c
43df5c
index c5b8d7795c5e5..6d64017022c00 100644
43df5c
--- a/extensions/libxt_hashlimit.c
43df5c
+++ b/extensions/libxt_hashlimit.c
43df5c
@@ -11,6 +11,7 @@
43df5c
  * Error corections by nmalykh@bilim.com (22.01.2005)
43df5c
  */
43df5c
 #define _BSD_SOURCE 1
43df5c
+#define _DEFAULT_SOURCE 1
43df5c
 #define _ISOC99_SOURCE 1
43df5c
 #include <math.h>
43df5c
 #include <stdbool.h>
43df5c
diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c
43df5c
index f75ef2f87a74c..183a86e324211 100644
43df5c
--- a/extensions/libxt_limit.c
43df5c
+++ b/extensions/libxt_limit.c
43df5c
@@ -4,6 +4,7 @@
43df5c
  * Hervé Eychenne    <rv@wallfire.org>
43df5c
  */
43df5c
 #define _BSD_SOURCE 1
43df5c
+#define _DEFAULT_SOURCE 1
43df5c
 #define _ISOC99_SOURCE 1
43df5c
 #include <math.h>
43df5c
 #include <stdio.h>
43df5c
-- 
43df5c
2.21.0
43df5c