View | Details | Raw Unified | Return to bug 233491 | Differences between
and this patch

Collapse All | Expand All

(-)patch-src_osgEarthDrivers_fastdxt_libdxt.cpp (+18 lines)
Line 0 Link Here
1
--- src/osgEarthDrivers/fastdxt/libdxt.cpp.orig	2018-11-18 08:01:55 UTC
2
+++ src/osgEarthDrivers/fastdxt/libdxt.cpp
3
@@ -24,7 +24,7 @@
4
 
5
 #include "libdxt.h"
6
 
7
-#if defined(__APPLE__)
8
+#if defined(__APPLE__) || (__FreeBSD__)
9
 #define memalign(x,y) malloc((y))
10
 #else
11
 #include <malloc.h>
12
@@ -92,4 +92,4 @@ int CompressDXT(const byte *in, byte *out, int width, 
13
   // Join all the threads
14
   nbbytes = job.nbb;
15
   return nbbytes;
16
-}
17
\ No newline at end of file
18
+}
(-)patch-src_osgEarthDrivers_fastdxt_util.h (+11 lines)
Line 0 Link Here
1
--- src/osgEarthDrivers/fastdxt/util.h.orig	2018-11-18 08:00:00 UTC
2
+++ src/osgEarthDrivers/fastdxt/util.h
3
@@ -64,7 +64,7 @@ void aFree(void* const p);
4
 float drand48(void);
5
 #endif
6
 
7
-#if defined(__APPLE__)
8
+#if defined(__APPLE__) || defined(__FreeBSD__)
9
 #define memalign(x,y) malloc((y))
10
 #else
11
 #include <malloc.h>

Return to bug 233491