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 <[email protected]>
Acked-by: Uwe Hermann <[email protected]>



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 */
 


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to