git: 54072047da3d - main - xinstall: Don't use UF_SETTABLE to infer whether st_flags is present
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 May 2025 16:58:35 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=54072047da3d0b737e22b107ba1f8f1fec9bb8a6
commit 54072047da3d0b737e22b107ba1f8f1fec9bb8a6
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-05-06 16:58:10 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-05-06 16:58:10 +0000
xinstall: Don't use UF_SETTABLE to infer whether st_flags is present
A future commit will add definitions of these for use in bootstrap tools
on Linux, but struct stat will still be the host's that lacks st_flags.
Switch this to just check for Linux instead, matching nbtool_config.h.
Reviewed by: emaste, markj, imp
Differential Revision: https://reviews.freebsd.org/D50079
---
usr.bin/xinstall/xinstall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 02b3eeccf8a7..28b546bc80c2 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -81,7 +81,7 @@
* non-FreeBSD system. Linux does not have the st_flags and st_birthtime
* members in struct stat so we need to omit support for changing those fields.
*/
-#ifdef UF_SETTABLE
+#ifndef __linux__
#define HAVE_STRUCT_STAT_ST_FLAGS 1
#else
#define HAVE_STRUCT_STAT_ST_FLAGS 0