[PATCH] Mark ResourceClientBits _X_EXPORT
Keith Packard
keithp at keithp.com
Tue Sep 1 20:07:36 PDT 2015
This function is referenced by modules and drivers, so it needs to be
published or the X server will crash when a module attempts to use it.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
include/resource.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/resource.h b/include/resource.h
index 597f7b6..5871a4c 100644
--- a/include/resource.h
+++ b/include/resource.h
@@ -85,7 +85,7 @@ typedef uint32_t RESTYPE;
#define RT_LASTPREDEF ((RESTYPE)9)
#define RT_NONE ((RESTYPE)0)
-extern unsigned int ResourceClientBits(void);
+extern _X_EXPORT unsigned int ResourceClientBits(void);
/* bits and fields within a resource id */
#define RESOURCE_AND_CLIENT_COUNT 29 /* 29 bits for XIDs */
#define RESOURCE_CLIENT_BITS ResourceClientBits() /* client field offset */
--
2.5.0
More information about the xorg-devel
mailing list