Ensure that the object code for ast_atomic_fetchadd_int() gets included in the
authorRussell Bryant <russell@russellbryant.com>
Wed, 22 Aug 2007 16:27:39 +0000 (16:27 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 22 Aug 2007 16:27:39 +0000 (16:27 +0000)
check_expr binary when building with LOW_MEMORY defined.
(reported by Brian Capouch on the asterisk-dev list, patch by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80262 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/check_expr.c

index db78775..3eeff07 100644 (file)
@@ -29,8 +29,13 @@ struct ast_channel
 
 #include <../include/asterisk/compat.h>
 #include <../include/asterisk/ast_expr.h>
+
 #define AST_API_MODULE 1
 #include "asterisk/inline_api.h"
+
+#define AST_API_MODULE 1
+#include "asterisk/lock.h"
+
 #include "asterisk/strings.h"
 
 /* I included this from utils.c, so as not to have everything in that .c