diff --git a/Xext/hashtable.c b/Xext/hashtable.c index c413319ce..4e1f5d28b 100644 --- a/Xext/hashtable.c +++ b/Xext/hashtable.c @@ -1,6 +1,9 @@ #include #include + +#include "dix/resource_priv.h" + #include "misc.h" #include "hashtable.h" diff --git a/dix/resource_priv.h b/dix/resource_priv.h index 7900e4360..accd83052 100644 --- a/dix/resource_priv.h +++ b/dix/resource_priv.h @@ -19,6 +19,9 @@ /* extract the client mask from an XID */ #define CLIENT_BITS(id) ((id) & RESOURCE_CLIENT_MASK) +/* resource field */ +#define RESOURCE_ID_MASK ((1 << CLIENTOFFSET) - 1) + /* * @brief retrieve client that owns given window * diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index f17dfdf5b..d85898b91 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -50,6 +50,7 @@ #include #include +#include "dix/resource_priv.h" #include "os/log_priv.h" #include "os/osdep.h" #include "xkb/xkbsrv_priv.h" diff --git a/include/resource.h b/include/resource.h index aa314f9ed..d03e36e2d 100644 --- a/include/resource.h +++ b/include/resource.h @@ -103,8 +103,6 @@ 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 CLIENTOFFSET (RESOURCE_AND_CLIENT_COUNT - ResourceClientBits()) -/* resource field */ -#define RESOURCE_ID_MASK ((1 << CLIENTOFFSET) - 1) #define BAD_RESOURCE 0xe0000000