X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Finit_globals.c;h=81cb966c3d3971380119db639b9c41343d39290f;hp=1f2905c4167b0261cd18992c526ee5cc7aa48258;hb=eb4631c82f3b57fb016234447443268d4f46b933;hpb=becf0d3294d52943303c8b3646f99260912c6f4b diff --git a/src/init_globals.c b/src/init_globals.c index 1f2905c..81cb966 100644 --- a/src/init_globals.c +++ b/src/init_globals.c @@ -24,6 +24,10 @@ #include #endif +#if YAZ_HAVE_EXSLT +#include +#endif + static int yaz_init_flag = 0; #if YAZ_POSIX_THREADS static pthread_mutex_t yaz_init_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -51,7 +55,10 @@ void yaz_init_globals(void) gcry_control(GCRYCTL_INITIALIZATION_FINISHED, NULL, 0); } #endif - yaz_init_flag = 1; +#if YAZ_HAVE_EXSLT + exsltRegisterAll(); +#endif + yaz_init_flag = 1; /* must be last, before unlocking */ } #if YAZ_POSIX_THREADS pthread_mutex_unlock(&yaz_init_mutex);