diff --git a/src/osgPlugins/curl/ReaderWriterCURL.cpp b/src/osgPlugins/curl/ReaderWriterCURL.cpp index d9e81a958..1cfd799ac 100644 --- a/src/osgPlugins/curl/ReaderWriterCURL.cpp +++ b/src/osgPlugins/curl/ReaderWriterCURL.cpp @@ -21,7 +21,14 @@ #include #include -#include + +#if LIBCURL_VERSION_NUM < 0x071503 + // types.h has been removed in 7.21.7 so have to protect with version guard + // it may be possible to remove it completely but can't yet work out when + // types.h was deprecated so will assume it's still needed in older libcurl versions + // that OSG users are using. + #include +#endif #include "ReaderWriterCURL.h"