logo

utils-std

Collection of commonly available Unix tools
commit: 3214bb70cc59d23d1a86dfdbee6c08585f7cf258
parent 7a35d61357d0e10ded9ed30db1ab0711d265fca1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 26 Sep 2023 23:58:48 +0200

cmd/basename: define _POSIX_C_SOURCE

Diffstat:

Mcmd/basename.c2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/basename.c b/cmd/basename.c @@ -2,6 +2,8 @@ // SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> // SPDX-License-Identifier: MPL-2.0 +#define _POSIX_C_SOURCE 200809L + #include <assert.h> // assert() #include <libgen.h> // basename() #include <stdio.h> // fprintf(), puts(), perror()