From 2beb600bfd2c9954a0f4cac71ed979da17e97e1e Mon Sep 17 00:00:00 2001 From: uwe Date: Wed, 13 May 2009 12:01:57 +0000 Subject: Fix nic3com.c build issues on *BSD (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@501 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- nic3com.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nic3com.c') diff --git a/nic3com.c b/nic3com.c index 9772731..0b5433e 100644 --- a/nic3com.c +++ b/nic3com.c @@ -20,8 +20,10 @@ #include #include +#include +#include +#include #include -#include #include #include "flash.h" @@ -37,6 +39,10 @@ uint32_t io_base_addr; struct pci_access *pacc; +#if defined(__FreeBSD__) || defined(__DragonFly__) +int io_fd; +#endif + #define OK 0 #define NT 1 /* Not tested */ -- cgit v1.2.1