diff options
author | Corey Farrell <git@cfware.com> | 2018-01-25 02:37:32 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-01-25 10:38:45 -0500 |
commit | 23381d2c5ea84cb45e41163b81c3b7bb43a9db75 (patch) | |
tree | 633dcd16c3f30644c55d942876b18c778fc3c9ee /main | |
parent | 6fbd85522896c9c94281ed775c98a041721de424 (diff) |
Build System: Require __sync or __atomic functions.
This change causes the configure script to throw an error if neither
__sync nor __atomic builtin functions are available.
ASTERISK-27619
Change-Id: Ie01a281e0f5c41dfeeb5f250c1ccea8752f56ef9
Diffstat (limited to 'main')
-rw-r--r-- | main/utils.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/main/utils.c b/main/utils.c index 85228c183..7f74f40be 100644 --- a/main/utils.c +++ b/main/utils.c @@ -1985,18 +1985,6 @@ char *ast_to_camel_case_delim(const char *s, const char *delim) return res; } -AST_MUTEX_DEFINE_STATIC(fetchadd_m); /* used for all fetc&add ops */ - -int ast_atomic_fetchadd_int_slow(volatile int *p, int v) -{ - int ret; - ast_mutex_lock(&fetchadd_m); - ret = *p; - *p += v; - ast_mutex_unlock(&fetchadd_m); - return ret; -} - /*! \brief * get values from config variables. */ |