diff --git a/Xext/Makefile.am b/Xext/Makefile.am index a952935a1..9ed51da11 100644 --- a/Xext/Makefile.am +++ b/Xext/Makefile.am @@ -24,13 +24,13 @@ BUILTIN_SRCS = \ shape.c \ sleepuntil.c \ sleepuntil.h \ + sync.c \ xcmisc.c \ xtest.c # Sources always included in libXextmodule.la & libXext.la MODULE_SRCS = \ - shape.c \ - sync.c + shape.c # Optional sources included if extension enabled by configure.ac rules diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index 2b67ff887..8096fb0e4 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -74,15 +74,6 @@ static ExtensionModule extensionModules[] = { NULL }, #endif -#ifdef XSYNC - { - SyncExtensionInit, - SYNC_NAME, - &noSyncExtension, - NULL, - NULL - }, -#endif #ifdef SCREENSAVER { ScreenSaverExtensionInit, diff --git a/hw/xfree86/dixmods/extmod/modinit.h b/hw/xfree86/dixmods/extmod/modinit.h index bc4ae78c6..7bcefc948 100644 --- a/hw/xfree86/dixmods/extmod/modinit.h +++ b/hw/xfree86/dixmods/extmod/modinit.h @@ -29,13 +29,6 @@ extern void XTestExtensionInit(INITARGS); extern void XTestExtension1Init(INITARGS); #endif -#ifdef XSYNC -extern void SyncExtensionInit(INITARGS); -#define _SYNC_SERVER -#include -#include -#endif - #ifdef SCREENSAVER extern void ScreenSaverExtensionInit (INITARGS); #include diff --git a/hw/xfree86/loader/dixsym.c b/hw/xfree86/loader/dixsym.c index c4c532b9e..5566a20d0 100644 --- a/hw/xfree86/loader/dixsym.c +++ b/hw/xfree86/loader/dixsym.c @@ -375,9 +375,6 @@ _X_HIDDEN void *dixLookupTab[] = { #ifdef XCSECURITY SYMVAR(noSecurityExtension) #endif -#ifdef XSYNC - SYMVAR(noSyncExtension) -#endif #ifdef RES SYMVAR(noResExtension) #endif diff --git a/include/globals.h b/include/globals.h index 4af307cef..7a4b70882 100644 --- a/include/globals.h +++ b/include/globals.h @@ -94,10 +94,6 @@ extern Bool noShapeExtension; extern Bool noSecurityExtension; #endif -#ifdef XSYNC -extern Bool noSyncExtension; -#endif - #ifdef RES extern Bool noResExtension; #endif diff --git a/mi/miinitext.c b/mi/miinitext.c index ca7f0fb0a..8e60d6bfb 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -121,9 +121,6 @@ extern Bool noShapeExtension; #ifdef XCSECURITY extern Bool noSecurityExtension; #endif -#ifdef XSYNC -extern Bool noSyncExtension; -#endif #ifdef RES extern Bool noResExtension; #endif @@ -236,9 +233,7 @@ extern void ScreenSaverExtensionInit (INITARGS); extern void XvExtensionInit(INITARGS); extern void XvMCExtensionInit(INITARGS); #endif -#ifdef XSYNC extern void SyncExtensionInit(INITARGS); -#endif #ifdef XKB extern void XkbExtensionInit(INITARGS); #endif @@ -348,9 +343,6 @@ static ExtensionToggle ExtensionToggleList[] = #ifdef XCSECURITY { "SECURITY", &noSecurityExtension }, #endif -#ifdef XSYNC - { "SYNC", &noSyncExtension }, -#endif #ifdef RES { "X-Resource", &noResExtension }, #endif @@ -463,9 +455,7 @@ InitExtensions(argc, argv) XvMCExtensionInit(); } #endif -#ifdef XSYNC - if (!noSyncExtension) SyncExtensionInit(); -#endif + SyncExtensionInit(); #if defined(XKB) if (!noXkbExtension) XkbExtensionInit(); #endif @@ -554,6 +544,7 @@ static ExtensionModule staticExtensions[] = { #ifdef XIDLE { XIdleExtensionInit, "XIDLE", &noXIdleExtension, NULL, NULL }, #endif + { SyncExtensionInit, "SYNC", NULL, NULL, NULL }, #ifdef XKB { XkbExtensionInit, XkbName, &noXkbExtension, NULL, NULL }, #endif diff --git a/os/WaitFor.c b/os/WaitFor.c index da12976ca..f07388be4 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -364,7 +364,6 @@ WaitForSomething(int *pClientsReady) curclient = XFD_FD(&savedClientsReadable, i); client_index = GetConnectionTranslation(curclient); #endif -#ifdef XSYNC /* We implement "strict" priorities. * Only the highest priority client is returned to * dix. If multiple clients at the same priority are @@ -391,7 +390,6 @@ WaitForSomething(int *pClientsReady) * clients get batched together */ else if (client_priority == highest_priority) -#endif { pClientsReady[nready++] = client_index; } diff --git a/os/utils.c b/os/utils.c index 987832734..a2d687f25 100644 --- a/os/utils.c +++ b/os/utils.c @@ -167,9 +167,6 @@ _X_EXPORT Bool noShapeExtension = FALSE; #ifdef XCSECURITY _X_EXPORT Bool noSecurityExtension = FALSE; #endif -#ifdef XSYNC -_X_EXPORT Bool noSyncExtension = FALSE; -#endif #ifdef RES _X_EXPORT Bool noResExtension = FALSE; #endif