void-packages/srcpkgs/OpenCPN/patches/musl.patch
2019-03-29 11:44:59 -03:00

25 lines
679 B
Diff

--- src/chart1.cpp 2019-03-23 02:25:59.000000000 +0100
+++ - 2019-03-29 07:24:46.107362311 +0100
@@ -8002,7 +8002,7 @@
}
}
}
-
+#ifdef __GLIBC__
struct mallinfo mi;
mi = mallinfo();
@@ -8018,11 +8018,11 @@
//printf("Total free space (fordblks): %d\n", mi.fordblks);
//printf("Topmost releasable block (keepcost): %d\n", mi.keepcost);
- printf("\n");
if(mem_used)
*mem_used = mi.uordblks / 1024;
-
+#endif
+ printf("\n");
//printf("mem_used (Mb): %d\n", *mem_used / 1024);
return true;
#endif /* linux */