diff -Nuar xc.orig/lib/Xi/XGetVers.c xc/lib/Xi/XGetVers.c --- xc.orig/lib/Xi/XGetVers.c 2004-04-23 20:43:44.000000000 +0200 +++ xc/lib/Xi/XGetVers.c 2005-12-26 01:58:54.000000000 +0100 @@ -67,10 +67,8 @@ { XExtensionVersion *ext; - LockDisplay (dpy); ext = _XiGetExtensionVersion (dpy, name); if (ext != (XExtensionVersion *) NoSuchExtension) { - UnlockDisplay (dpy); SyncHandle(); } return (ext); diff -Nuar xc.orig/lib/Xi/XIint.h xc/lib/Xi/XIint.h --- xc.orig/lib/Xi/XIint.h 2004-04-23 20:43:44.000000000 +0200 +++ xc/lib/Xi/XIint.h 2005-12-26 01:55:49.000000000 +0100 @@ -22,4 +22,11 @@ _Xconst char* ); +extern XExtensionVersion * _XiGetExtensionVersion( +#if NeedFunctionPrototypes + Display*, + _Xconst char* +#endif +); + #endif