1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Second try at fixing ecpglib thread-safety problem.

While Windows (allegedly) has _configthreadlocale() pretty far back,
it seems MinGW didn't acquire support for that till more recently.
Fortunately, we can use an autoconf probe on that toolchain,
instead of guessing whether it's there.  (Hm, I wonder whether Cygwin
will need this also.)

Per buildfarm.

Discussion: https://postgr.es/m/20190121193512.tdmcnic2yjxlufaw@alap3.anarazel.de
This commit is contained in:
Tom Lane
2019-01-21 16:17:10 -05:00
parent 527114e51e
commit ee27584c4a
7 changed files with 24 additions and 6 deletions

View File

@ -69,7 +69,7 @@ struct statement
locale_t oldlocale;
#else
char *oldlocale;
#ifdef WIN32
#ifdef HAVE__CONFIGTHREADLOCALE
int oldthreadlocale;
#endif
#endif