Skip to content

Commit

Permalink
c++11: fix libbdb build against libc++ in c++11 mode
Browse files Browse the repository at this point in the history
atomic_init clashes with
  • Loading branch information
theuni committed Jan 5, 2016
1 parent 57d2f62 commit 3968922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depends/packages/bdb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3968922

Please sign in to comment.