From c6609c83e327a36c3f0425bee94c8f1374810817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=BCller?= Date: Thu, 15 Feb 2024 15:30:16 +0100 Subject: [PATCH] dtls_debug.c: only enable _GNU_SOURCE for MinGW builds. --- dtls_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dtls_debug.c b/dtls_debug.c index 9c9a0770..236fe705 100644 --- a/dtls_debug.c +++ b/dtls_debug.c @@ -17,9 +17,11 @@ #include "tinydtls.h" +#ifdef IS_WINDOWS #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif /* _GNU_SOURCE */ +#endif /* IS_WINDOWS */ #if defined(HAVE_ASSERT_H) && !defined(assert) #include