From 3ed2c6e11298c4299042cfe4578f6cc02e441d58 Mon Sep 17 00:00:00 2001 From: Tomas Carnecky Date: Tue, 10 Jul 2012 02:03:03 +0100 Subject: [PATCH] Move MIT-SCREEN-SAVER from extmod to built-in If we've built MIT-SCREEN-SAVER support, then just build it into the main binary, rather than leaving it in extmod. Signed-off-by: Tomas Carnecky Reviewed-by: Daniel Stone Reviewed-by: Jamey Sharp Signed-off-by: Peter Hutterer Signed-off-by: Keith Packard --- Xext/Makefile.am | 2 +- hw/xfree86/dixmods/extmod/modinit.c | 8 -------- include/extinit.h | 2 +- mi/miinitext.c | 3 +++ 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Xext/Makefile.am b/Xext/Makefile.am index 4082de78d..4f91254a4 100644 --- a/Xext/Makefile.am +++ b/Xext/Makefile.am @@ -58,7 +58,7 @@ endif # MIT ScreenSaver extension SCREENSAVER_SRCS = saver.c if SCREENSAVER -MODULE_SRCS += $(SCREENSAVER_SRCS) +BUILTIN_SRCS += $(SCREENSAVER_SRCS) endif # Xinerama extension: making multiple video devices act as one virtual screen diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index 009852c33..660b1cda3 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -47,14 +47,6 @@ static ExtensionModule extensionModules[] = { NULL, NULL}, #endif -#ifdef SCREENSAVER - { - ScreenSaverExtensionInit, - ScreenSaverName, - &noScreenSaverExtension, - NULL, - NULL}, -#endif #ifdef XF86VIDMODE { XFree86VidModeExtensionInit, diff --git a/include/extinit.h b/include/extinit.h index 2755e30e3..61768b08a 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -110,7 +110,7 @@ extern Bool noResExtension; extern void ResExtensionInit(void); #endif -#if defined(SCREENSAVER) && !defined(XorgLoader) +#if defined(SCREENSAVER) #include extern Bool noScreenSaverExtension; extern void ScreenSaverExtensionInit(void); diff --git a/mi/miinitext.c b/mi/miinitext.c index 9c93fc57a..0b4a4cf0f 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -397,6 +397,9 @@ static ExtensionModule staticExtensions[] = { #ifdef DAMAGE {DamageExtensionInit, "DAMAGE", &noDamageExtension, NULL}, #endif +#ifdef SCREENSAVER + {ScreenSaverExtensionInit, ScreenSaverName, &noScreenSaverExtension, NULL}, +#endif #ifdef DBE {DbeExtensionInit, "DOUBLE-BUFFER", &noDbeExtension, NULL}, #endif