aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wordgrinder/fixes-musl.patch
blob: 491993181a25395dc9524fb26de42fe104f2aec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;