aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wordgrinder/fixes-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/wordgrinder/fixes-musl.patch')
-rw-r--r--testing/wordgrinder/fixes-musl.patch28
1 files changed, 9 insertions, 19 deletions
diff --git a/testing/wordgrinder/fixes-musl.patch b/testing/wordgrinder/fixes-musl.patch
index 491993181a..37731c169d 100644
--- a/testing/wordgrinder/fixes-musl.patch
+++ b/testing/wordgrinder/fixes-musl.patch
@@ -1,23 +1,13 @@
+diff --git a/src/c/arch/unix/cursesw/dpy.c b/src/c/arch/unix/cursesw/dpy.c
+index e9931bd..6345c89 100644
--- a/src/c/arch/unix/cursesw/dpy.c
+++ b/src/c/arch/unix/cursesw/dpy.c
-@@ -114,7 +114,7 @@
- {
- struct timeval then;
- gettimeofday(&then, NULL);
-- u_int64_t thenms = (then.tv_usec/1000) + ((u_int64_t) then.tv_sec*1000);
-+ uint64_t thenms = (then.tv_usec/1000) + ((uint64_t) then.tv_sec*1000);
+@@ -12,6 +12,8 @@
- for (;;)
- {
-@@ -123,9 +123,9 @@
- {
- struct timeval now;
- gettimeofday(&now, NULL);
-- u_int64_t nowms = (now.tv_usec/1000) + ((u_int64_t) now.tv_sec*1000);
-+ uint64_t nowms = (now.tv_usec/1000) + ((uint64_t) now.tv_sec*1000);
-
-- int delay = ((u_int64_t) timeout*1000) + nowms - thenms;
-+ int delay = ((uint64_t) timeout*1000) + nowms - thenms;
- if (delay <= 0)
- return -KEY_TIMEOUT;
+ #define KEY_TIMEOUT (KEY_MAX + 1)
++typedef uint64_t u_int64_t;
++
+ #if defined A_ITALIC
+ static bool has_italics = false;
+ #endif