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