mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
32
www-client/w3mmee/files/w3mmee-time.patch
Normal file
32
www-client/w3mmee/files/w3mmee-time.patch
Normal 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
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user