diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 09:10:43 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 09:10:43 +0000 |
| commit | e9a593b2c0b0bbe9b1827d32a2706b9c22ff7b1c (patch) | |
| tree | 7a85ed1406ee5081d2192cf899692fb1409fe21e /util/nvmutil/nvmutil.c | |
| parent | 7620d1d12668853cfece0f8f0cfd3017b691ae1f (diff) | |
util/nvmutil: define SIZE_MAX if not defined
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 25f38a58..1606eec6 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -272,6 +272,10 @@ static const char *mac_str; static const char *fname; static const char *argv0; +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)-1) +#endif + #ifndef SSIZE_MAX #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1)) #endif |
