mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
fix the tokudb build on 32 bit linux closes[t:2273]
git-svn-id: file:///svn/toku/tokudb@16708 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
committed by
Yoni Fogel
parent
42f8c95778
commit
d5ee2d7946
@@ -281,3 +281,14 @@ toku_os_get_processor_frequency(uint64_t *hzret) {
|
||||
r = toku_get_processor_frequency_cpuinfo(hzret);
|
||||
return r;
|
||||
}
|
||||
|
||||
#if __GNUC__ && __i386__
|
||||
|
||||
// workaround for a gcc 4.1.2 bug on 32 bit platforms.
|
||||
uint64_t toku_sync_fetch_and_add_uint64(volatile uint64_t *a, uint64_t b) __attribute__((noinline));
|
||||
|
||||
uint64_t toku_sync_fetch_and_add_uint64(volatile uint64_t *a, uint64_t b) {
|
||||
return __sync_fetch_and_add(a, b);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user