util/nvmutil: define SIZE_MAX if not defined

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 09:10:43 +00:00
parent 7620d1d126
commit e9a593b2c0
+4
View File
@@ -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