Fix malloc_stats() call for newer uClibc-ng versions

This commit is contained in:
M. Liebmann
2017-03-08 00:32:21 +01:00
parent bfa589eb08
commit b58aa9ad6f
2 changed files with 17 additions and 15 deletions

View File

@@ -4707,7 +4707,11 @@ void CNeutrinoApp::Cleanup()
printf("cleanup 6\n");fflush(stdout);
delete CVFD::getInstance();
#ifdef __UCLIBC__
#if (__UCLIBC_MAJOR__ >= 1) && (__UCLIBC_MINOR__ >= 0) && (__UCLIBC_SUBLEVEL__ >= 10)
malloc_stats();
#else
malloc_stats(NULL);
#endif
#else
malloc_stats();
#endif