From 55310cc855e432b2c8ee673f35f1b9b9a81e9cf4 Mon Sep 17 00:00:00 2001
From: Mark Michelson <mmichelson@digium.com>
Date: Tue, 6 May 2008 20:15:02 +0000
Subject: [PATCH] Get refcounter to build with LOW_MEMORY defined

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 utils/refcounter.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/utils/refcounter.c b/utils/refcounter.c
index 4c3e96e3b5..4d4d9dbb08 100644
--- a/utils/refcounter.c
+++ b/utils/refcounter.c
@@ -197,10 +197,12 @@ int main(int argc,char **argv)
 
 /* stub routines to satisfy linking with asterisk subcomponents */
 
+#ifndef LOW_MEMORY
 int  ast_add_profile(const char *x, uint64_t scale)
 {
 	return 0;
 }
+#endif
 
 int ast_loader_register(int (*updater)(void))
 {
@@ -219,7 +221,7 @@ void ast_module_unregister(const struct ast_module_info *x)
 {
 }
 
-
+#ifndef LOW_MEMORY
 void ast_register_file_version(const char *file, const char *version)
 {
 }
@@ -235,6 +237,7 @@ int64_t ast_mark(int x, int start1_stop0)
 {
 	return 0;
 }
+#endif
 
 void ast_log(int level, const char *file, int line, const char *function, const char *fmt, ...)
 {
-- 
GitLab