diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-13 12:01:57 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-13 12:01:57 +0000 |
commit | 92c53eef8e9e3faa581e4563146ef3464ff8211f (patch) | |
tree | 56befb80e7f08d3fa51c00e071824ea7885dd545 /nic3com.c | |
parent | 3e9dbea1ce9c94a879deccc48bd72c60eb4b3454 (diff) | |
download | flashrom-92c53eef8e9e3faa581e4563146ef3464ff8211f.tar.gz flashrom-92c53eef8e9e3faa581e4563146ef3464ff8211f.tar.bz2 flashrom-92c53eef8e9e3faa581e4563146ef3464ff8211f.zip |
Fix nic3com.c build issues on *BSD
Corresponding to flashrom svn r501.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'nic3com.c')
-rw-r--r-- | nic3com.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |