www-client/w3mmee: fix build

Closes: https://bugs.gentoo.org/586258
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Akinori Hattori
2018-03-31 23:01:54 +09:00
parent 564494be25
commit 9686ccba79
2 changed files with 33 additions and 0 deletions

View File

@@ -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

View File

@@ -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
)