From 36344f84b5e62c8782c643050a887d7abe11bbbf Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 16 Mar 2026 15:23:20 +0000 Subject: util/nvmutil: portable S_ISREG very old libc doesn't have it Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index d6f83570..f5c588be 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -701,6 +701,10 @@ int fchmod(int fd, mode_t mode); static int tmp_fd = -1; static char *tname = NULL; +#ifndef S_ISREG +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif + int main(int argc, char *argv[]) { -- cgit v1.2.1