From d86583c1f5eb7e90a1550b8763b0be17f0b1376a Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 29 Apr 2026 09:01:50 +0100 Subject: [PATCH] disambiguate include guards for sys_stat and sys_statvfs --- src/header/sys_stat/cbindgen.toml | 4 ++-- src/header/sys_statvfs/cbindgen.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/header/sys_stat/cbindgen.toml b/src/header/sys_stat/cbindgen.toml index a922349e9f..61ca0da6b4 100644 --- a/src/header/sys_stat/cbindgen.toml +++ b/src/header/sys_stat/cbindgen.toml @@ -5,9 +5,9 @@ # - "The header shall define the timespec structure as described in . Times shall be given in seconds since the Epoch." # - "Inclusion of the header may make visible all symbols from the header." sys_includes = ["sys/types.h"] -include_guard = "_SYS_STAT_H" +include_guard = "_RELIBC_SYS_STAT_H" after_includes = """ -#include // for timespec +#include // for timespec from time.h #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) diff --git a/src/header/sys_statvfs/cbindgen.toml b/src/header/sys_statvfs/cbindgen.toml index 7d75072153..fa324209cd 100644 --- a/src/header/sys_statvfs/cbindgen.toml +++ b/src/header/sys_statvfs/cbindgen.toml @@ -3,7 +3,7 @@ # Spec quotations relating to includes: # - "The header shall define the fsblkcnt_t and fsfilcnt_t types as described in ." sys_includes = ["sys/types.h"] -include_guard = "_SYS_STATVFS_H" +include_guard = "_RELIBC_SYS_STATVFS_H" language = "C" style = "Tag" no_includes = true