diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2021-12-24 15:00:51 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2022-01-05 12:16:03 +0000 |
commit | cad512f9169835b6254d9a015a7e14cb5e7047d2 (patch) | |
tree | 2cc4c03827bce51f0e78f78f4e5521b9411acecf | |
parent | dda193390344d32821d308077f53d1b772999052 (diff) | |
download | flashrom-cad512f9169835b6254d9a015a7e14cb5e7047d2.tar.gz flashrom-cad512f9169835b6254d9a015a7e14cb5e7047d2.tar.bz2 flashrom-cad512f9169835b6254d9a015a7e14cb5e7047d2.zip |
hwaccess_x86_msr: fix build for FreeBSD
Add missing includes for FreeBSD
Change-Id: I2045345878392436b0ea4d6bd4f2896edc645673
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/60342
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
-rw-r--r-- | hwaccess_x86_msr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hwaccess_x86_msr.c b/hwaccess_x86_msr.c index fa7df723..79cf2f82 100644 --- a/hwaccess_x86_msr.c +++ b/hwaccess_x86_msr.c @@ -204,6 +204,13 @@ void cleanup_cpu_msr(void) } #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#include <stdint.h> +#include <stdlib.h> +#include <errno.h> +#include <fcntl.h> +#include <string.h> +#include <unistd.h> + #include <sys/ioctl.h> typedef struct { |