mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +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 int tmp_fd = -1;
|
||||||
static char *tname = NULL;
|
static char *tname = NULL;
|
||||||
|
|
||||||
|
#ifndef S_ISREG
|
||||||
|
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user