From c3d6f07b8e4d22df533ce7a90660ae1da2df5476 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 May 2024 16:54:39 -0400 Subject: stat: Support __st_birthtim on OpenBSD --- build/has/--st-birthtim.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 build/has/--st-birthtim.c (limited to 'build/has') diff --git a/build/has/--st-birthtim.c b/build/has/--st-birthtim.c new file mode 100644 index 0000000..4da621f --- /dev/null +++ b/build/has/--st-birthtim.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes +// SPDX-License-Identifier: 0BSD + +#include + +int main(void) { + struct stat sb = {0}; + return sb.__st_birthtim.tv_sec; +} -- cgit v1.2.3