From 744bcf3d85c47774a500542be4be5860b6869caa Mon Sep 17 00:00:00 2001 From: Costa Tsaousis Date: Thu, 11 Jan 2024 20:43:54 +0200 Subject: [PATCH] fix cmake _GNU_SOURCE warnings (#16761) --- mqtt_websockets/src/mqtt_ng.c | 2 ++ mqtt_websockets/src/mqtt_wss_client.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mqtt_websockets/src/mqtt_ng.c b/mqtt_websockets/src/mqtt_ng.c index 81cffccf0d9589..2d5981c76da5aa 100644 --- a/mqtt_websockets/src/mqtt_ng.c +++ b/mqtt_websockets/src/mqtt_ng.c @@ -1,4 +1,6 @@ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include diff --git a/mqtt_websockets/src/mqtt_wss_client.c b/mqtt_websockets/src/mqtt_wss_client.c index 01e2ffce790db6..7d9d6a76cb50de 100644 --- a/mqtt_websockets/src/mqtt_wss_client.c +++ b/mqtt_websockets/src/mqtt_wss_client.c @@ -10,7 +10,9 @@ // // You should have received a copy of the GNU General Public License along with this program. // If not, see . +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "mqtt_wss_client.h" #include "mqtt_ng.h"