1c23d710f7
OCCT 7.5.0 breaks ABI, and downstream packages such as FreeCAD fail to
build.
Keep the license change. We should also stick with their repository
instead of GitHub, which doesn't have all the releases.
This reverts commit abe75dc062
.
Closes: #29541 [via git-merge-pr]
17 lines
425 B
Diff
17 lines
425 B
Diff
In musl libc there is no struct mallinfo and no function mallinf()
|
|
|
|
--- src/OSD/OSD_MemInfo.cxx.orig
|
|
+++ src/OSD/OSD_MemInfo.cxx
|
|
@@ -147,8 +147,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;
|