From c4077eb298efd8bf7bc4b8a8893b76019bb39dbf Mon Sep 17 00:00:00 2001 From: Oleh Nykyforchyn Date: Thu, 7 Aug 2025 18:39:38 +0300 Subject: [PATCH] xserver: os: reexport TimerForce() but do not allow compile drivers with it This function is called by nvidia390 legacy proprietary driver. Signed-off-by: Oleh Nykyforchyn --- os/osdep.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os/osdep.h b/os/osdep.h index 7487ee2796..5a715ef73d 100644 --- a/os/osdep.h +++ b/os/osdep.h @@ -118,7 +118,11 @@ extern Bool ComputeLocalClient(ClientPtr client); /* OsTimer functions */ void TimerInit(void); -Bool TimerForce(OsTimerPtr timer); + +/* must be exported for backwards compatibility with legacy nvidia390, + * not for use in maintained drivers + */ +_X_EXPORT Bool TimerForce(OsTimerPtr); #ifdef WIN32 #include