diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx index 5f7176e748d1..330b69ab27dd 100644 --- a/vcl/headless/svpinst.cxx +++ b/vcl/headless/svpinst.cxx @@ -28,7 +28,9 @@ #include #include -#include +#ifndef LIBO_HEADLESS +# include +#endif #include #include diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index c6dbedddbe5c..2bb81ad8da2d 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -35,7 +35,9 @@ #include #include #include -#include +#ifdef MACOSX +# include +#endif #include #include