diff options
-rw-r--r-- | Xext/Makefile.am | 2 | ||||
-rw-r--r-- | Xext/xres.c | 2 | ||||
-rw-r--r-- | hw/xfree86/dixmods/extmod/modinit.c | 8 | ||||
-rw-r--r-- | include/extinit.h | 2 | ||||
-rw-r--r-- | mi/miinitext.c | 3 |
5 files changed, 7 insertions, 10 deletions
diff --git a/Xext/Makefile.am b/Xext/Makefile.am index 15cbdab61..5837be076 100644 --- a/Xext/Makefile.am +++ b/Xext/Makefile.am @@ -52,7 +52,7 @@ endif # XResource extension: lets clients get data about per-client resource usage RES_SRCS = hashtable.c hashtable.h xres.c if RES -MODULE_SRCS += $(RES_SRCS) +BUILTIN_SRCS += $(RES_SRCS) endif # MIT ScreenSaver extension diff --git a/Xext/xres.c b/Xext/xres.c index 445abcab8..7d21ad7e9 100644 --- a/Xext/xres.c +++ b/Xext/xres.c @@ -190,6 +190,8 @@ DestroyConstructResourceBytesCtx(ConstructResourceBytesCtx *ctx) ht_destroy(ctx->visitedResources); } +extern void ResExtensionInit(void); + static int ProcXResQueryVersion(ClientPtr client) { diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index bb120a2b2..3c6933293 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -77,14 +77,6 @@ static ExtensionModule extensionModules[] = { NULL, NULL}, #endif -#ifdef RES - { - ResExtensionInit, - XRES_NAME, - &noResExtension, - NULL, - NULL}, -#endif }; static XF86ModuleVersionInfo VersRec = { diff --git a/include/extinit.h b/include/extinit.h index 4d8aef574..589db1fd8 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -104,7 +104,7 @@ extern void RecordExtensionInit(void); extern Bool noRenderExtension; extern void RenderExtensionInit(void); -#if defined(RES) && !defined(XorgLoader) +#if defined(RES) #include <X11/extensions/XResproto.h> extern Bool noResExtension; extern void ResExtensionInit(void); diff --git a/mi/miinitext.c b/mi/miinitext.c index 6aee7c177..53e5dda5e 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -409,6 +409,9 @@ static ExtensionModule staticExtensions[] = { #ifdef DPMSExtension {DPMSExtensionInit, DPMSExtensionName, &noDPMSExtension, NULL}, #endif +#ifdef RES + {ResExtensionInit, XRES_NAME, &noResExtension, NULL}, +#endif }; /*ARGSUSED*/ void |