--- src/osgEarthDrivers/fastdxt/libdxt.cpp.orig 2018-11-18 08:01:55 UTC
+++ src/osgEarthDrivers/fastdxt/libdxt.cpp
@@ -24,7 +24,7 @@
#include "libdxt.h"
-#if defined(__APPLE__)
+#if defined(__APPLE__) || (__FreeBSD__)
#define memalign(x,y) malloc((y))
#else
#include <malloc.h>
@@ -92,4 +92,4 @@ int CompressDXT(const byte *in, byte *out, int width,
// Join all the threads
nbbytes = job.nbb;
return nbbytes;
-}
\ No newline at end of file
+}
--- src/osgEarthDrivers/fastdxt/util.h.orig 2018-11-18 08:00:00 UTC
+++ src/osgEarthDrivers/fastdxt/util.h
@@ -64,7 +64,7 @@ void aFree(void* const p);
float drand48(void);
#endif
+#if defined(__APPLE__) || defined(__FreeBSD__)