From c35d0c2ed5578b180e17c37588a047fd013cc619 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 19 Apr 2024 15:14:09 -0400 Subject: config: Check for struct stat::st_flags --- config/header.mk | 1 + config/st-flags.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 config/st-flags.c (limited to 'config') diff --git a/config/header.mk b/config/header.mk index 5b6ff11..06b8f7f 100644 --- a/config/header.mk +++ b/config/header.mk @@ -24,6 +24,7 @@ HEADERS := \ ${GEN}/st-acmtimespec.h \ ${GEN}/st-birthtim.h \ ${GEN}/st-birthtimespec.h \ + ${GEN}/st-flags.h \ ${GEN}/statx.h \ ${GEN}/statx-syscall.h \ ${GEN}/strerror-l.h \ diff --git a/config/st-flags.c b/config/st-flags.c new file mode 100644 index 0000000..b1d0c32 --- /dev/null +++ b/config/st-flags.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes +// SPDX-License-Identifier: 0BSD + +#include + +int main(void) { + struct stat sb = {0}; + return sb.st_flags; +} -- cgit v1.2.3