path: root/hwaccess.h
diff options
authorStefan Tauner <>2013-09-12 15:48:39 +0000
committerStefan Tauner <>2013-09-12 15:48:39 +0000
commitc65b8555d5c002dfa102377849916327e05c7712 (patch)
tree38e32d281cb3e396de0ae7783ed71fce2d9c9ff5 /hwaccess.h
parent4442b81fd8ba9236813a22bec77f5920033a7df5 (diff)
BSD refinements
Make it easier to compile flashrom under NetBSD and DragonFlyBSD: - Use /usr/pkg/ as prefix for includes and linking - Use pciutils as include path for the right(tm) libpci Also, fix date handling in to work with the various formats for invoking 'date'. This also uses svn's info --xml output instead of the regular one. Corresponding to flashrom svn r1742. Signed-off-by: Stefan Tauner <> Tested-by: Idwer Vollering <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'hwaccess.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h
index fd6eb12..83f349e 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -37,7 +37,13 @@
* or as builtin.
#define index shadow_workaround_index
+#if !defined (__NetBSD__) && !defined (__DragonFly__)
#include <pci/pci.h>
+#include <pciutils/pci.h>
#undef index
OpenPOWER on IntegriCloud