git: fbd23a858f18 - main - graphics/mesa-devel: unbreak build on aarch64 after cde5539d63d4

Jan Beich <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fbd23a858f182444f1928f14fc658858f65aa206

commit fbd23a858f182444f1928f14fc658858f65aa206
Author:     Jan Beich <[email protected]>
AuthorDate: 2026-08-09 02:54:26 +0000
Commit:     Jan Beich <[email protected]>
CommitDate: 2026-08-13 00:42:04 +0000

    graphics/mesa-devel: unbreak build on aarch64 after cde5539d63d4
    
    In file included from ../src/panfrost/perf/pan_perf.c:15:
    ../src/panfrost/perf/pan_perf.h:51:11: error: use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
       51 |    return CLOCK_MONOTONIC_RAW;
          |           ^
    
    Reported by:    pkg-fallout
---
 graphics/mesa-devel/files/patch-clock_monotonic | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/graphics/mesa-devel/files/patch-clock_monotonic b/graphics/mesa-devel/files/patch-clock_monotonic
index 1e9aa442a6a9..c073e0865281 100644
--- a/graphics/mesa-devel/files/patch-clock_monotonic
+++ b/graphics/mesa-devel/files/patch-clock_monotonic
@@ -1,3 +1,7 @@
+In file included from ../src/panfrost/perf/pan_perf.c:15:
+../src/panfrost/perf/pan_perf.h:51:11: error: use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
+   51 |    return CLOCK_MONOTONIC_RAW;
+      |           ^
 ../src/vulkan/wsi/wsi_common_wayland.c:1962:57: error: use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
  1962 |          if (clock_id != CLOCK_MONOTONIC && clock_id != CLOCK_MONOTONIC_RAW)
       |                                                         ^
@@ -5,6 +9,20 @@
  3601 |       case CLOCK_MONOTONIC_RAW:
       |            ^
 
+--- src/panfrost/perf/pan_perf.h.orig	2026-08-05 23:22:05 UTC
++++ src/panfrost/perf/pan_perf.h
+@@ -14,6 +14,11 @@
+ 
+ #include "util/timespec.h"
+ 
++/* The "RAW" clocks on Linux are called "FAST" on FreeBSD */
++#if !defined(CLOCK_MONOTONIC_RAW) && defined(CLOCK_MONOTONIC_FAST)
++#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
++#endif
++
+ #if defined(__cplusplus)
+ extern "C" {
+ #endif
 --- src/vulkan/wsi/wsi_common_wayland.c.orig	2026-01-29 17:00:57 UTC
 +++ src/vulkan/wsi/wsi_common_wayland.c
 @@ -68,6 +68,11 @@
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.