logo

utils-std

Collection of commonly available Unix tools
commit: 9559dd9c3e443d0da847bf3d768c088e1df069c0
parent 9594d2600aa27743a237edd47d88c81a671f0a70
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 26 Sep 2023 17:52:09 +0200

lib/strtodur.c: Add missing _POSIX_C_SOURCE define

Diffstat:

Mlib/strtodur.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/strtodur.c b/lib/strtodur.c @@ -2,11 +2,12 @@ // SPDX-FileCopyrightText: 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> // SPDX-License-Identifier: MPL-2.0 +#define _POSIX_C_SOURCE 200809L #include "strtodur.h" +#include <assert.h> #include <errno.h> // errno #include <stdio.h> // fprintf, perror, sscanf -#include <assert.h> int strtodur(char *s, struct timespec *dur)