mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
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>
This commit is contained in:
parent
3e9dbea1ce
commit
92c53eef8e
@ -20,8 +20,10 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/io.h>
|
|
||||||
#include <pci/pci.h>
|
#include <pci/pci.h>
|
||||||
#include "flash.h"
|
#include "flash.h"
|
||||||
|
|
||||||
@ -37,6 +39,10 @@
|
|||||||
uint32_t io_base_addr;
|
uint32_t io_base_addr;
|
||||||
struct pci_access *pacc;
|
struct pci_access *pacc;
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||||
|
int io_fd;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define OK 0
|
#define OK 0
|
||||||
#define NT 1 /* Not tested */
|
#define NT 1 /* Not tested */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user