diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2024-01-11 20:43:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 20:43:54 +0200 |
commit | 744bcf3d85c47774a500542be4be5860b6869caa (patch) | |
tree | 6070a5d76f86ef0ba3d7069ed787d2a9875f91c2 | |
parent | af042f7470c8e8810256953d4d0e6c9ab5321995 (diff) |
fix cmake _GNU_SOURCE warnings (#16761)
-rw-r--r-- | mqtt_websockets/src/mqtt_ng.c | 2 | ||||
-rw-r--r-- | mqtt_websockets/src/mqtt_wss_client.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mqtt_websockets/src/mqtt_ng.c b/mqtt_websockets/src/mqtt_ng.c index 81cffccf0d..2d5981c76d 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 <stdint.h> #include <stdlib.h> diff --git a/mqtt_websockets/src/mqtt_wss_client.c b/mqtt_websockets/src/mqtt_wss_client.c index 01e2ffce79..7d9d6a76cb 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 <https://www.gnu.org/licenses/>. +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "mqtt_wss_client.h" #include "mqtt_ng.h" |