logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: e7c18af6511cbd675bc6de85c1004043057df578
parent cd06343865e358791e5b40c883224a5495f0143a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  1 Aug 2025 07:47:07 +0200

Add _GNU_SOURCE for O_PATH

Diffstat:

Mcmd/ln.c1+
Mconfigure.d/o_path.c1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/ln.c b/cmd/ln.c @@ -2,6 +2,7 @@ // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> // SPDX-License-Identifier: MPL-2.0 +#define _GNU_SOURCE // O_PATH with glibc #define _DEFAULT_SOURCE // due to O_PATH // Don't define _POSIX_C_SOURCE otherwise FreeBSD hides O_PATH diff --git a/configure.d/o_path.c b/configure.d/o_path.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE // glibc #define _DEFAULT_SOURCE #include <fcntl.h>