Add src/compatibility.h to include software-dependency macros

Origin commit data
------------------
Branch: ni/coolstream
Commit: 87b7260c48
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-08 (Wed, 08 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-03-08 12:22:43 +01:00
parent 5891499504
commit 3d5b84fb78
3 changed files with 42 additions and 21 deletions

View File

@@ -55,15 +55,7 @@
#include "xmlutil.h"
#include "debug.h"
#ifdef __UCLIBC__
#if (__UCLIBC_MAJOR__ >= 1) && (__UCLIBC_MINOR__ >= 0) && (__UCLIBC_SUBLEVEL__ >= 10)
#define MALLOC_STATS(a) malloc_stats()
#else
#define MALLOC_STATS(a) malloc_stats(a)
#endif
#else
#define MALLOC_STATS(a) malloc_stats()
#endif
#include <compatibility.h>
//#define ENABLE_SDT //FIXME
@@ -1077,7 +1069,7 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
);
printf("%s\n", stati);
MALLOC_STATS(NULL);
comp_malloc_stats(NULL);
return ;
}
@@ -1206,7 +1198,7 @@ static void FreeMemory()
unlockEvents();
MALLOC_STATS(NULL);
comp_malloc_stats(NULL);
xprintf("[sectionsd] free memory done\n");
//wakeupAll(); //FIXME should we re-start eit here ?
}
@@ -2056,7 +2048,7 @@ static void print_meminfo(void)
if (!sections_debug)
return;
MALLOC_STATS(NULL);
comp_malloc_stats(NULL);
}
//---------------------------------------------------------------------