From 16ca24b0a7ad38b7c1dab7a3b5c1d05111add516 Mon Sep 17 00:00:00 2001 From: Benjamin Schwendinger Date: Mon, 22 Dec 2025 22:58:28 +0100 Subject: [PATCH 1/3] adapt header for cc --- src/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.c b/src/utils.c index a910cfb96..043dd64be 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,5 @@ #ifndef _WIN32 +# define _POSIX_C_SOURCE 200809L # include #endif From aa6eed14ad086e6a92d59b627482c1eba6f9015d Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 24 Dec 2025 13:32:55 -0800 Subject: [PATCH 2/3] comment about necessity --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 043dd64be..c3bfebfab 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,5 +1,5 @@ #ifndef _WIN32 -# define _POSIX_C_SOURCE 200809L +# define _POSIX_C_SOURCE 200809L // required for non-POSIX features in is_direct_child e.g. 'siginfo_t' # include #endif From 840deae6550e9829effa7c292deeaa4917f8470f Mon Sep 17 00:00:00 2001 From: Ivan K Date: Thu, 25 Dec 2025 00:57:08 +0300 Subject: [PATCH 3/3] tweak --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index c3bfebfab..e11bc09d5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,5 +1,5 @@ #ifndef _WIN32 -# define _POSIX_C_SOURCE 200809L // required for non-POSIX features in is_direct_child e.g. 'siginfo_t' +# define _POSIX_C_SOURCE 200809L // required for POSIX (not standard C) features in is_direct_child e.g. 'siginfo_t' # include #endif