summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nic3com.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nic3com.c b/nic3com.c
index 9772731..0b5433e 100644
--- a/nic3com.c
+++ b/nic3com.c
@@ -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 */
OpenPOWER on IntegriCloud