mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 23:08:49 +02:00
util/nvmutil: portable S_IFMT
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -712,6 +712,14 @@ ino_t tmp_ino;
|
|||||||
int tmp_fd = -1;
|
int tmp_fd = -1;
|
||||||
char *tname = NULL;
|
char *tname = NULL;
|
||||||
|
|
||||||
|
#ifndef S_ISREG
|
||||||
|
#ifdef S_IFMT
|
||||||
|
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||||
|
#else
|
||||||
|
#define S_ISREG(m) (((m) & S_IFREG) == S_IFREG)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef S_ISREG
|
#ifndef S_ISREG
|
||||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user