commit: 8aa1fae195e1237b0823328ff13a20514aa68793
parent 6cb07cfc963e756d517e2a3ecab5fe8c8b77150e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  3 Jun 2023 03:48:09 +0200
cmd/touch: Add _XOPEN_SOURCE for strptime
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmd/touch.c b/cmd/touch.c
@@ -2,7 +2,8 @@
 // SPDX-FileCopyrightText: 2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
 
-#define _BSD_SOURCE   // strptime, tm_gmtoff/tm_zone
+#define _DEFAULT_SOURCE   // tm_gmtoff/tm_zone
+#define _XOPEN_SOURCE // strptime
 #include <fcntl.h>    /* open */
 #include <stdbool.h>  /* bool */
 #include <stdio.h>    /* perror, sscanf */