package/postgresql: fix build without NPTL
Fix the following build failure without NPTL raised since bump to version 14.1 in commitc9bd029115
and44bf3d5083
: In file included from pthread_barrier_wait.c:16: ../../src/include/port/pg_pthread.h:31:3: error: conflicting types for 'pthread_barrier_t' 31 | } pthread_barrier_t; | ^~~~~~~~~~~~~~~~~ In file included from /home/autobuild/autobuild/instance-11/output-1/host/arc-buildroot-linux-uclibc/sysroot/usr/include/bits/uClibc_stdio.h:114, from /home/autobuild/autobuild/instance-11/output-1/host/arc-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:71, from ../../src/include/c.h:59, from pthread_barrier_wait.c:14: /home/autobuild/autobuild/instance-11/output-1/host/arc-buildroot-linux-uclibc/sysroot/usr/include/bits/pthreadtypes.h:135:3: note: previous declaration of 'pthread_barrier_t' was here 135 | } pthread_barrier_t; | ^~~~~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/70acbe121236ef0905c4466d4f7a0839723d2c49 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
24d2bc3b1c
commit
6bc3461735
@ -38,7 +38,7 @@ ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
POSTGRESQL_CONF_ENV += pgac_cv_type_locale_t=no
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
|
||||
POSTGRESQL_CONF_OPTS += --disable-thread-safety
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user