diff options
Diffstat (limited to 'testing/wordgrinder/fixes-musl.patch')
-rw-r--r-- | testing/wordgrinder/fixes-musl.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/wordgrinder/fixes-musl.patch b/testing/wordgrinder/fixes-musl.patch new file mode 100644 index 0000000000..491993181a --- /dev/null +++ b/testing/wordgrinder/fixes-musl.patch @@ -0,0 +1,23 @@ +--- 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); + + 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; + |