diff options
author | nia <nia@pkgsrc.org> | 2021-12-22 11:46:48 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-12-22 11:46:48 +0000 |
commit | eea3d5120f22042871a927c7ad517a5f31d7ffd1 (patch) | |
tree | 1bb137a7304c3cc41d3e550ec87a168bf6f6fd6d /graphics | |
parent | 991845a2d38abb8d73b25383f98235de9950ec77 (diff) | |
download | pkgsrc-eea3d5120f22042871a927c7ad517a5f31d7ffd1.tar.gz |
MesaLib: restore a patch necessary for older Darwin versions
reported by Ruben Gonzalez.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/distinfo | 3 | ||||
-rw-r--r-- | graphics/MesaLib/patches/patch-include_c11_threads__posix.h | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo index d7d835597ee..151b415f286 100644 --- a/graphics/MesaLib/distinfo +++ b/graphics/MesaLib/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.160 2021/10/26 10:45:54 nia Exp $ +$NetBSD: distinfo,v 1.161 2021/12/22 11:46:48 nia Exp $ BLAKE2s (mesa-20.0.6.tar.xz) = 84bdac00a14b37b598d9077448f0013439ee76db1a2f9cbc60b1b8b12838c61c SHA512 (mesa-20.0.6.tar.xz) = a93dc3ed57ed7469b7c60cdbdcf4f29c5da4ec3986171c7b534e009e136ca21fec16207ffab38a6747437a9b1060e2e6c4b74c4e5cdc168b9aba0fc1940b5e90 Size (mesa-20.0.6.tar.xz) = 12275708 bytes +SHA1 (patch-include_c11_threads__posix.h) = 420cc3ee2f3846c448175d406e89ceb697689336 SHA1 (patch-src_amd_common_ac__debug.c) = 8233367c3b5bc344442ea8d19488fdd1e3791ae9 SHA1 (patch-src_compiler_builtin__type__macros.h) = e4868011711fb89a293580a12eb603b8e7162336 SHA1 (patch-src_egl_drivers_dri2_platform__drm.c) = 9230fbae2c04246ebca8437ecad694bbae857fbe diff --git a/graphics/MesaLib/patches/patch-include_c11_threads__posix.h b/graphics/MesaLib/patches/patch-include_c11_threads__posix.h new file mode 100644 index 00000000000..4e578ab9d4f --- /dev/null +++ b/graphics/MesaLib/patches/patch-include_c11_threads__posix.h @@ -0,0 +1,17 @@ +$NetBSD: patch-include_c11_threads__posix.h,v 1.3 2021/12/22 11:46:48 nia Exp $ + +Use compat version of timespec_get regardless on Darwin. The +meson configure test completes successfully even with clearly +bogus values on Catalina. + +--- include/c11/threads_posix.h.orig 2020-04-29 22:48:24.000000000 +0000 ++++ include/c11/threads_posix.h +@@ -382,7 +382,7 @@ tss_set(tss_t key, void *val) + + /*-------------------- 7.25.7 Time functions --------------------*/ + // 7.25.6.1 +-#ifndef HAVE_TIMESPEC_GET ++#if !defined(HAVE_TIMESPEC_GET) || defined(__APPLE__) + static inline int + timespec_get(struct timespec *ts, int base) + { |