[coreboot] [flashrom] r501 - trunk
svn at coreboot.org
svn at coreboot.org
Wed May 13 14:01:57 CEST 2009
Author: uwe
Date: 2009-05-13 14:01:57 +0200 (Wed, 13 May 2009)
New Revision: 501
Modified:
trunk/nic3com.c
Log:
Fix nic3com.c build issues on *BSD (trivial).
Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified: trunk/nic3com.c
===================================================================
--- trunk/nic3com.c 2009-05-13 11:40:08 UTC (rev 500)
+++ trunk/nic3com.c 2009-05-13 12:01:57 UTC (rev 501)
@@ -20,8 +20,10 @@
#include <stdlib.h>
#include <string.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <errno.h>
-#include <sys/io.h>
#include <pci/pci.h>
#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 */
More information about the coreboot
mailing list