summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-09-17 13:11:59 +0000
committermaya <maya@pkgsrc.org>2018-09-17 13:11:59 +0000
commit3f0813849650a490fb59f19308c5c7f4510a1325 (patch)
tree0b2693b6d39b30000524ad4ed9d6637cd9d1d9b3 /sysutils
parent724d0de034eaddf34f44301255f260de8914da00 (diff)
downloadpkgsrc-3f0813849650a490fb59f19308c5c7f4510a1325.tar.gz
acpica-utils: build fix for netbsd<7
from Edgar Fuß in PR pkg/52654
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/acpica-utils/distinfo3
-rw-r--r--sysutils/acpica-utils/patches/patch-source_include_platform_acnetbsd.h13
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/acpica-utils/distinfo b/sysutils/acpica-utils/distinfo
index 91d7a928b2b..1ceb1a4bcd5 100644
--- a/sysutils/acpica-utils/distinfo
+++ b/sysutils/acpica-utils/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2016/11/02 12:21:19 maya Exp $
+$NetBSD: distinfo,v 1.13 2018/09/17 13:11:59 maya Exp $
SHA1 (acpica-unix2-20160930.tar.gz) = 45b1d14454b8986ed56ec81c217694131becbcbf
RMD160 (acpica-unix2-20160930.tar.gz) = f58d5cbfe516340f168b8e2090c656097c7964cd
@@ -9,4 +9,5 @@ RMD160 (acpitests-unix-20160930.tar.gz) = f9d3e152191c2595301e2356441fca8630c36b
SHA512 (acpitests-unix-20160930.tar.gz) = f982826e01de7a79da543c2ca99dfc9459829a03332841dfe00f45bfc1620bdfa986a5ce4c8bbee2933325c1c526434c04e3601d727fb111f049e71e080a4c71
Size (acpitests-unix-20160930.tar.gz) = 1829886 bytes
SHA1 (patch-generate_unix_Makefile.config) = b760ec07afa96902641ff4b979b7764baa39aceb
+SHA1 (patch-source_include_platform_acnetbsd.h) = d272a3c84d337c2da44d83b37efb81f83a213a39
SHA1 (patch-source_include_platform_acsolaris.h) = ecc090345a6d259f96923376e65d28c57dceebab
diff --git a/sysutils/acpica-utils/patches/patch-source_include_platform_acnetbsd.h b/sysutils/acpica-utils/patches/patch-source_include_platform_acnetbsd.h
new file mode 100644
index 00000000000..84d00638f84
--- /dev/null
+++ b/sysutils/acpica-utils/patches/patch-source_include_platform_acnetbsd.h
@@ -0,0 +1,13 @@
+--- source/include/platform/acnetbsd.h.orig 2015-04-10 17:27:17.000000000 +0200
++++ source/include/platform/acnetbsd.h 2015-12-10 14:15:22.000000000 +0100
+@@ -112,4 +112,10 @@
+ #define ACPI_USE_SYSTEM_CLIBRARY
+ #define ACPI_USE_NATIVE_DIVIDE
+
++/* NetBSD versions prior to 7 lack sem_timedwait() in librt */
++#include <sys/param.h>
++#if (__NetBSD_Version__ < 700000000) /* NetBSD 7 */
++#define ACPI_USE_ALTERNATE_TIMEOUT
++#endif
++
+ #endif /* __ACNETBSD_H__ */