From c31fb5518523ab6d7028e7313cd56a91d67de879 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Thu, 9 May 2024 11:28:22 +0530 Subject: [PATCH] common: Add guard around _GNU_SOURCE defintion Signed-off-by: Siddharth Chandrasekaran --- src/osdp_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osdp_common.c b/src/osdp_common.c index 871346f..e7a0228 100644 --- a/src/osdp_common.c +++ b/src/osdp_common.c @@ -3,6 +3,11 @@ * * SPDX-License-Identifier: Apache-2.0 */ + +#ifndef _GNU_SOURCE +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#endif + #include #include #ifndef CONFIG_DISABLE_PRETTY_LOGGING