diff --git a/src/OSD/OSD_MemInfo.cxx b/src/OSD/OSD_MemInfo.cxx index 92224c0d13..928c01ccc0 100644 --- a/src/OSD/OSD_MemInfo.cxx +++ b/src/OSD/OSD_MemInfo.cxx @@ -31,7 +31,9 @@ #include #else #include - #include + #ifndef __OpenBSD__ + #include + #endif #endif #include diff --git a/src/StepFile/recfile.pc b/src/StepFile/recfile.pc index d3f4795d95..087afd0b5c 100644 --- a/src/StepFile/recfile.pc +++ b/src/StepFile/recfile.pc @@ -16,7 +16,7 @@ #include "stdio.h" #include "string.h" #include "stdlib.h" -#if (!defined(_WIN32) && !defined(__APPLE__)) +#if (!defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)) #include "malloc.h" #endif #include "recfile.ph"