aports/testing/wordgrinder/fixes-musl.patch
Roberto Oliveira e96116f925 testing/wordgrinder: new aport
WordGrinder is a simple, Unicode-aware word processor that runs on the console.
2018-03-25 01:46:13 +00:00

24 lines
708 B
Diff

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