From 9249fc018bdd7ed4105a8d56b5718cda4e122d61 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 13 Feb 2025 19:56:15 +0100 Subject: [PATCH] fixup??? git-compat-util: avoid redeclaring _DEFAULT_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Header refactoring. (◔_◔) Signed-off-by: Johannes Schindelin --- compat/posix.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/posix.h b/compat/posix.h index eae013ae4987d0..7259949c69a621 100644 --- a/compat/posix.h +++ b/compat/posix.h @@ -70,7 +70,9 @@ #define _ALL_SOURCE 1 #define _GNU_SOURCE 1 #define _BSD_SOURCE 1 +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE 1 +#endif #define _NETBSD_SOURCE 1 #define _SGI_SOURCE 1