diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-09-12 15:48:39 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-09-12 15:48:39 +0000 |
commit | 60590298a29b8f9977b6aaa31b54b7f177a969e5 (patch) | |
tree | 38e32d281cb3e396de0ae7783ed71fce2d9c9ff5 /hwaccess.h | |
parent | 0ba2c91bbb8561e3ffe702fd60ab625b12d27c4e (diff) | |
download | flashrom-60590298a29b8f9977b6aaa31b54b7f177a969e5.zip flashrom-60590298a29b8f9977b6aaa31b54b7f177a969e5.tar.gz |
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.
Tested-by: Idwer Vollering <vidwer@gmail.com>
Corresponding to flashrom svn r1742.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'hwaccess.h')
-rw-r--r-- | hwaccess.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -37,7 +37,13 @@ * or as builtin. */ #define index shadow_workaround_index + +#if !defined (__NetBSD__) && !defined (__DragonFly__) #include <pci/pci.h> +#else +#include <pciutils/pci.h> +#endif + #undef index #endif |