util/nvmutil: portable S_ISREG

very old libc doesn't have it

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-16 15:23:20 +00:00
parent 6a898dff72
commit ea71010f85
+4
View File
@@ -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[])
{