summaryrefslogtreecommitdiff
path: root/user/mesa/time64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/mesa/time64.patch')
-rw-r--r--user/mesa/time64.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/mesa/time64.patch b/user/mesa/time64.patch
new file mode 100644
index 000000000..7e7894a9d
--- /dev/null
+++ b/user/mesa/time64.patch
@@ -0,0 +1,34 @@
+--- mesa-19.3.1/src/gallium/drivers/vc4/vc4_bufmgr.c.old 2019-12-18 18:36:00.000000000 +0000
++++ mesa-19.3.1/src/gallium/drivers/vc4/vc4_bufmgr.c 2020-01-20 19:26:36.470000000 +0000
+@@ -107,8 +107,8 @@
+
+ struct timespec time;
+ clock_gettime(CLOCK_MONOTONIC, &time);
+- fprintf(stderr, " now: %ld\n",
+- time.tv_sec);
++ fprintf(stderr, " now: %"PRId64"\n",
++ (int64_t)time.tv_sec);
+ }
+ }
+
+--- mesa-19.3.1/src/gallium/drivers/v3d/v3d_bufmgr.c.old 2019-12-18 18:36:00.000000000 +0000
++++ mesa-19.3.1/src/gallium/drivers/v3d/v3d_bufmgr.c 2020-01-20 19:28:02.600000000 +0000
+@@ -23,6 +23,7 @@
+
+ #include <errno.h>
+ #include <err.h>
++#include <inttypes.h>
+ #include <sys/mman.h>
+ #include <fcntl.h>
+ #include <xf86drm.h>
+@@ -80,8 +81,8 @@
+
+ struct timespec time;
+ clock_gettime(CLOCK_MONOTONIC, &time);
+- fprintf(stderr, " now: %ld\n",
+- time.tv_sec);
++ fprintf(stderr, " now: %"PRId64"\n",
++ (int64_t)time.tv_sec);
+ }
+ }
+