From c65b8555d5c002dfa102377849916327e05c7712 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Thu, 12 Sep 2013 15:48:39 +0000 Subject: 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 getrevision.sh 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 --- hwaccess.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hwaccess.h') diff --git a/hwaccess.h b/hwaccess.h index fd6eb12a..83f349ea 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 +#else +#include +#endif + #undef index #endif -- cgit v1.2.3