summaryrefslogblamecommitdiff
path: root/user/mesa/time64.patch
blob: 7e7894a9de1b496859708a32b63730a298582345 (plain) (tree)

































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