summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-03-31 23:01:54 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-03-31 23:01:54 +0900
commit9686ccba79d936298b2cd8dfd541371100ca79a2 (patch)
tree24a3640d2e044c9f3f7a4c9023b94696357db248 /www-client/w3mmee
parentwww-client/w3mmee: update to EAPI 6 (diff)
downloadgentoo-9686ccba79d936298b2cd8dfd541371100ca79a2.tar.gz
gentoo-9686ccba79d936298b2cd8dfd541371100ca79a2.tar.bz2
gentoo-9686ccba79d936298b2cd8dfd541371100ca79a2.zip
www-client/w3mmee: fix build
Closes: https://bugs.gentoo.org/586258 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'www-client/w3mmee')
-rw-r--r--www-client/w3mmee/files/w3mmee-time.patch32
-rw-r--r--www-client/w3mmee/w3mmee-0.3.2_p24-r10.ebuild1
2 files changed, 33 insertions, 0 deletions
diff --git a/www-client/w3mmee/files/w3mmee-time.patch b/www-client/w3mmee/files/w3mmee-time.patch
new file mode 100644
index 00000000000..c63d6542c32
--- /dev/null
+++ b/www-client/w3mmee/files/w3mmee-time.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/586258
+
+Author: kouyu <ckyoog@gmail.com>
+
+--- a/terms.c
++++ b/terms.c
+@@ -305,11 +305,7 @@
+ struct timeval *tout)
+ {
+ static struct timeval polltv = {
+-#if CLOCKS_PER_SEC > 1
+- 0, 1000000 / CLOCKS_PER_SEC
+-#else
+- 0, 10000
+-#endif
++ 0, CLOCKS_PER_SEC > 1 ? 1000000 / CLOCKS_PER_SEC : 10000
+ };
+ int m;
+ struct timeval tv;
+@@ -779,11 +775,7 @@
+ #endif
+
+ static struct timeval display_delta = {
+-#if CLOCKS_PER_SEC > 1
+- 0, 1000000 / CLOCKS_PER_SEC,
+-#else
+- 0, 10000
+-#endif
++ 0, CLOCKS_PER_SEC > 1 ? 1000000 / CLOCKS_PER_SEC : 10000
+ };
+
+ static int
diff --git a/www-client/w3mmee/w3mmee-0.3.2_p24-r10.ebuild b/www-client/w3mmee/w3mmee-0.3.2_p24-r10.ebuild
index f96eff96014..b08f0b4a398 100644
--- a/www-client/w3mmee/w3mmee-0.3.2_p24-r10.ebuild
+++ b/www-client/w3mmee/w3mmee-0.3.2_p24-r10.ebuild
@@ -40,6 +40,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-gcc-4.4.patch
"${FILESDIR}"/${PN}-gcc-4.5.patch
"${FILESDIR}"/${PN}-glibc-2.14.patch
+ "${FILESDIR}"/${PN}-time.patch
"${FILESDIR}"/${PN}-tinfo.patch
"${FILESDIR}"/${PN}-w3mman-gentoo.patch
)