aboutsummaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.h
diff options
context:
space:
mode:
authorAndrey Korolyov <andrey@xdel.ru>2016-01-04 02:20:04 +0300
committerMartin Roth <martinroth@google.com>2016-01-26 04:47:25 +0100
commitdecefea2729cb691d06f4c68c0c0d60c039d389f (patch)
treeaeb5d5f599c4a6a5b6cb1eec9adf440997313740 /util/superiotool/superiotool.h
parentde45c590808184be24b5f9d271b93740da7c0976 (diff)
superiotool: fix out-of-box NetBSD Makefile support
Add NetBSD-specific locations under pkg/ and missing linker flag for libpciutils. Change-Id: I812817a374aaba561b28d8a22f20d238c9dca32b Signed-off-by: Andrey Korolyov <andrey@xdel.ru> Reviewed-on: https://review.coreboot.org/12830 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/superiotool/superiotool.h')
-rw-r--r--util/superiotool/superiotool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h
index cc87a0ffa5..443cc07b68 100644
--- a/util/superiotool/superiotool.h
+++ b/util/superiotool/superiotool.h
@@ -34,7 +34,11 @@
#endif
#ifdef PCI_SUPPORT
+# ifdef __NetBSD__
+#include <pciutils/pci.h>
+# else
#include <pci/pci.h>
+# endif
#endif
#if defined(__FreeBSD__)