c++11: fix libbdb build against libc++ in c++11 mode

atomic_init clashes with
This commit is contained in:
Cory Fields 2016-01-05 16:27:42 -05:00
parent 57d2f62c99
commit 3968922b96
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ $(package)_config_opts_linux=--with-pic
endef
define $(package)_preprocess_cmds
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \
sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c
endef
define $(package)_config_cmds