Fix previous commit's ecpg_clocale for ppc Darwin.

Per buildfarm member prairiedog, this platform rejects uninitialized
global variables in shared libraries.  Back-patch to v10, like the
addition of the variable.

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/20220703030619.GB2378460@rfd.leadboat.com
This commit is contained in:
Noah Misch 2022-07-02 21:03:19 -07:00
parent 5633836ef3
commit e2bc242833
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
#include "sqlca.h"
#ifdef HAVE_USELOCALE
locale_t ecpg_clocale;
locale_t ecpg_clocale = (locale_t) 0;
#endif
#ifdef ENABLE_THREAD_SAFETY