mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: define SIZE_MAX if not defined
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -272,6 +272,10 @@ static const char *mac_str;
|
|||||||
static const char *fname;
|
static const char *fname;
|
||||||
static const char *argv0;
|
static const char *argv0;
|
||||||
|
|
||||||
|
#ifndef SIZE_MAX
|
||||||
|
#define SIZE_MAX ((size_t)-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SSIZE_MAX
|
#ifndef SSIZE_MAX
|
||||||
#define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
#define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user