From f56d3011031d30a1caa20463f7f8d84751af5f80 Mon Sep 17 00:00:00 2001 From: stefanct 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. Signed-off-by: Stefan Tauner Tested-by: Idwer Vollering Acked-by: Stefan Tauner git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1742 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- hwaccess.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hwaccess.h') 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 +#else +#include +#endif + #undef index #endif -- cgit v1.2.1