openbsd-ports/cad/oce/patches/patch-src_OSD_OSD_MemInfo_cxx
sthen 7e50f39e89 import cad/oce, from Tracey Emery, ok bentley@ (small tweak from me, drop MODTCL_WANTLIB
as MODTK_WANTLIB already includes it).

OCE is a C++ 3D modeling library. It can be used to develop CAD/CAM softwares,
for instance FreeCad or IfcOpenShell.

OCE stands for opencascade community edition. This project aims at gathering
patches/ changes/ improvements from the OCC community. Official OCCT
documentation and sources are available at http://www.opencascade.org/, you can
also check their development portal at http://dev.opencascade.org.
2019-11-06 17:23:22 +00:00

17 lines
363 B
Plaintext

$OpenBSD: patch-src_OSD_OSD_MemInfo_cxx,v 1.1.1.1 2019/11/06 17:23:22 sthen Exp $
Index: src/OSD/OSD_MemInfo.cxx
--- src/OSD/OSD_MemInfo.cxx.orig
+++ src/OSD/OSD_MemInfo.cxx
@@ -31,7 +31,9 @@
#include <malloc/malloc.h>
#else
#include <unistd.h>
- #include <malloc.h>
+ #ifndef __OpenBSD__
+ #include <malloc.h>
+ #endif
#endif
#include <string>