You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-geosciences/liblas/files/liblas-1.8.1-fix-debug.patch

19 lines
600 B

Description: Fix compilation with -DDEBUG and GDAL >= 2
Author: Even Rouault <even.rouault@spatialys.com>
Origin: https://github.com/libLAS/libLAS/commit/72f7709bf1dfd3473b64cdba0259363d3beea3c3
--- a/src/gt_wkt_srs.cpp
+++ b/src/gt_wkt_srs.cpp
@@ -90,7 +90,11 @@ static const char *papszDatumEquiv[] =
/* LibgeotiffOneTimeInit() */
/************************************************************************/
+#if GDAL_VERSION_MAJOR >= 2
+static CPLMutex* hMutex = NULL;
+#else
static void* hMutex = NULL;
+#endif
void LibgeotiffOneTimeInit()
{