logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 6df189fec450f850c599595503f8cce6116257b9
parent 86d4a937823afbae13e16705a490df30e3f79ba5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  1 Aug 2025 09:20:12 +0200

cmd/touch: _BSD_SOURCE on OpenBSD

Diffstat:

Mcmd/touch.c4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/cmd/touch.c b/cmd/touch.c @@ -6,6 +6,10 @@ #define _XOPEN_SOURCE 700 // strptime (NetBSD) #define _POSIX_C_SOURCE 200809L // O_NOFOLLOW, st_atim/st_mtim +#ifdef __OpenBSD__ // as seen on OpenBSD 7.7 +#define _BSD_SOURCE // O_NOFOLLOW +#endif + #include "../lib/bitmasks.h" /* FIELD_* */ #include "../libutils/datetime_parse.h" /* datetime_parse */ #include "../libutils/getopt_nolong.h"