]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xgl/xglUtils.c
FreeBSD pthread and malloc fixes.
[simgear.git] / simgear / xgl / xglUtils.c
index 4af679dcfb788d8a6d49337bd61b6123d35a977c..9fb05be16dfc376886d4c988a98e23ad961325c0 100644 (file)
@@ -6,7 +6,10 @@
 #if !defined( WIN32 )
 #  if !defined( HAVE_STL_SGI_PORT ) && !defined( __MWERKS__ ) && !defined( __APPLE__ )
 //   Avoid malloc with STLport and MSL
-#    include <malloc.h>
+#    ifdef HAVE_MALLOC_H
+//     Avoid malloc if system doesn't have it. :-)
+#      include <malloc.h>
+#    endif
 #  endif
 #endif