mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
@@ -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[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user