vp-build/srcpkgs/oce/patches/musl-mallinfo.patch

18 lines
497 B
Diff

In musl libc there is no struct mallinfo and no function mallinf()
--- src/OSD/OSD_MemInfo.cxx.orig 2016-01-02 06:11:52.000000000 +0100
+++ src/OSD/OSD_MemInfo.cxx 2016-06-03 13:55:56.613147425 +0200
@@ -144,8 +144,12 @@
}
aFile.close();
+ #if defined(__GLIBC__)
struct mallinfo aMI = mallinfo();
myCounters[MemHeapUsage] = aMI.uordblks;
+ #else /* XXX not yet coded */
+ myCounters[MemHeapUsage] = 0;
+ #endif
#elif (defined(__APPLE__))
struct task_basic_info aTaskInfo;