From 6b2e379cc78ef5ef720961cdcf2dd13a150b4292 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Jun 2024 22:58:02 +0200 Subject: [PATCH] xfree86: dri2: unexport noXFree86DRI2Extension and move into extension This isn't needed by any external module, so no need to export it. And those flags are better off in the corresponding extension, instead of the OS layer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86Extensions.h | 4 ++-- hw/xfree86/dri2/dri2ext.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86Extensions.h b/hw/xfree86/common/xf86Extensions.h index 7bebb1e12..735a9e6ea 100644 --- a/hw/xfree86/common/xf86Extensions.h +++ b/hw/xfree86/common/xf86Extensions.h @@ -35,8 +35,8 @@ void XFree86DRIExtensionInit(void); #ifdef DRI2 #include -extern _X_EXPORT Bool noDRI2Extension; -extern void DRI2ExtensionInit(void); +extern Bool noDRI2Extension; +void DRI2ExtensionInit(void); #endif #ifdef XF86VIDMODE diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c index a683bb818..e035446a5 100644 --- a/hw/xfree86/dri2/dri2ext.c +++ b/hw/xfree86/dri2/dri2ext.c @@ -56,7 +56,6 @@ static int DRI2EventBase; - static Bool validDrawable(ClientPtr client, XID drawable, Mask access_mode, DrawablePtr *pDrawable, int *status)