diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 06:59:11 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:22:03 +0000 |
| commit | f1fda8b43eb03be951846c6df9d0be81be84808e (patch) | |
| tree | 3763a5d0fa6c056cf4fcb0e23c2204c4773bef86 /util/nvmutil/lib/num.c | |
| parent | 2ed8db3adc19dd922e31082634146e159f65af2e (diff) | |
util/nvmutil: tidy up includes
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/num.c')
| -rw-r--r-- | util/nvmutil/lib/num.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/util/nvmutil/lib/num.c b/util/nvmutil/lib/num.c index 374cc9a0..1ee8505d 100644 --- a/util/nvmutil/lib/num.c +++ b/util/nvmutil/lib/num.c @@ -9,17 +9,15 @@ #include <sys/param.h> #endif #include <sys/types.h> -#include <sys/stat.h> #include <errno.h> -#include <fcntl.h> +#if !((defined(__OpenBSD__) && (OpenBSD) >= 201) || \ + defined(__FreeBSD__) || \ + defined(__NetBSD__) || defined(__APPLE__)) +#include <fcntl.h> /* if not arc4random: /dev/urandom */ +#endif #include <limits.h> -#include <stdarg.h> #include <stddef.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> #include <unistd.h> #include "../include/common.h" |
