From 336e29811b192f999aabd810df7be8f979459201 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 7 Dec 2011 03:29:50 +0000 Subject: [PATCH] Try to call XInitThreads() if it exists... likely not necessary, but the cryptlib stuff may do Bad Things. --- src/conio/x_cio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conio/x_cio.c b/src/conio/x_cio.c index 00cdf19667..b912d17467 100644 --- a/src/conio/x_cio.c +++ b/src/conio/x_cio.c @@ -169,6 +169,7 @@ int x_init(void) { dll_handle dl; const char *libnames[]={"X11",NULL}; + Status (*xit)(void); /* Ensure we haven't already initialized */ if(x11_initialized) @@ -185,6 +186,8 @@ int x_init(void) /* Load X11 functions */ if((dl=xp_dlopen(libnames,RTLD_LAZY,7))==NULL) return(-1); + if((xit=xp_dlsym(dl,XInitThreads))!=NULL) + xit(); if((x11.XChangeGC=xp_dlsym(dl,XChangeGC))==NULL) { xp_dlclose(dl); return(-1); -- GitLab