From a75a58737007aef2bb0532606b8d6856ee10fb0e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 16:22:58 +0200 Subject: [PATCH] xfree86: mark xf86configptr exported for Nvidia legacy Nvidia has a strange habit of messing with really internal stuff, so need to add it to the executable's symbol table. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86Config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Config.h b/hw/xfree86/common/xf86Config.h index aa0af4c22..a14913eb2 100644 --- a/hw/xfree86/common/xf86Config.h +++ b/hw/xfree86/common/xf86Config.h @@ -40,7 +40,8 @@ /* * global structure that holds the result of parsing the config file */ -extern XF86ConfigPtr xf86configptr; +/* only exported for funny Nvidia legacy - no driver should ever use it */ +extern _X_EXPORT XF86ConfigPtr xf86configptr; typedef enum _ConfigStatus { CONFIG_OK = 0,