summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2021-01-16 12:04:31 +0100
committerMartin Väth <martin@mvath.de>2021-01-16 12:04:31 +0100
commit00ed8667bcbbcafa410c898f66d9e8a1701e9fa6 (patch)
tree95c6beb4108b9707b63ffbf80de27000fdf242f3 /net-misc/openrdate
parentapp-portage/eix: Version bump (diff)
downloadmv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.tar.gz
mv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.tar.bz2
mv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.zip
net-misc/openrdate: fix compilation without sys/sysctl.h. -net-libs/wvstreams
Signed-off-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'net-misc/openrdate')
-rw-r--r--net-misc/openrdate/files/sysctl.patch12
-rw-r--r--net-misc/openrdate/openrdate-1.2.ebuild8
2 files changed, 18 insertions, 2 deletions
diff --git a/net-misc/openrdate/files/sysctl.patch b/net-misc/openrdate/files/sysctl.patch
new file mode 100644
index 00000000..ec1536da
--- /dev/null
+++ b/net-misc/openrdate/files/sysctl.patch
@@ -0,0 +1,12 @@
+--- 1/src/arc4random.c
++++ 1/src/arc4random.c
+@@ -44,7 +44,9 @@
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/time.h>
++#ifdef HAVE_SYSCTL
+ #include <sys/sysctl.h>
++#endif
+
+ #if defined __NO_SYSCTL__
+ #include <err.h>
diff --git a/net-misc/openrdate/openrdate-1.2.ebuild b/net-misc/openrdate/openrdate-1.2.ebuild
index b443fd24..0b5c9ffb 100644
--- a/net-misc/openrdate/openrdate-1.2.ebuild
+++ b/net-misc/openrdate/openrdate-1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors and Martin V\"ath
+# Copyright 1999-2021 Gentoo Authors and Martin V\"ath
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,8 +16,12 @@ IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.3-rename.patch
+ "${FILESDIR}"/sysctl.patch
+)
+
src_prepare() {
- eapply "${FILESDIR}"/${PN}-1.1.3-rename.patch
default
eautomake
mv docs/{,open}rdate.8