From 6d334268c1b0ca402dff4597249e427d22d22d35 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Sat, 24 Oct 2026 23:35:09 +0100 Subject: [PATCH] Fix warnings. --- plugins/channelrx/demodacars/atn/asn1/asn_system.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodacars/atn/asn1/asn_system.h b/plugins/channelrx/demodacars/atn/asn1/asn_system.h index 7060a3830..ac9bdd47f 100644 --- a/plugins/channelrx/demodacars/atn/asn1/asn_system.h +++ b/plugins/channelrx/demodacars/atn/asn1/asn_system.h @@ -13,8 +13,13 @@ #include "config.h" #endif -#ifndef _BSD_SOURCE -#define _BSD_SOURCE /* for snprintf() on some linux systems */ +/* SDRangel local modification: the skeleton asked glibc for the full set of + * declarations with _BSD_SOURCE, which glibc 2.20 deprecated in favour of + * _DEFAULT_SOURCE in 2014. Defining the old name on its own makes features.h warn, + * once for every translation unit that reaches here - over eight hundred of them in + * this directory. Other libcs ignore both */ +#ifndef _DEFAULT_SOURCE +#define _DEFAULT_SOURCE #endif #include /* For snprintf(3) */