mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 23:29:34 -05:00
ITS#7969 Wrap unportable __sync_synchronize in #if
This commit is contained in:
parent
943b23f011
commit
a937740aa0
1 changed files with 2 additions and 1 deletions
|
|
@ -3744,7 +3744,8 @@ mdb_env_write_meta(MDB_txn *txn)
|
||||||
mp->mm_dbs[0] = txn->mt_dbs[0];
|
mp->mm_dbs[0] = txn->mt_dbs[0];
|
||||||
mp->mm_dbs[1] = txn->mt_dbs[1];
|
mp->mm_dbs[1] = txn->mt_dbs[1];
|
||||||
mp->mm_last_pg = txn->mt_next_pgno - 1;
|
mp->mm_last_pg = txn->mt_next_pgno - 1;
|
||||||
#if !(defined(_MSC_VER) || defined(__i386__) || defined(__x86_64__))
|
#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 404) && /* TODO: portability */ \
|
||||||
|
!(defined(__i386__) || defined(__x86_64__))
|
||||||
/* LY: issue a memory barrier, if not x86. ITS#7969 */
|
/* LY: issue a memory barrier, if not x86. ITS#7969 */
|
||||||
__sync_synchronize();
|
__sync_synchronize();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue