ports/math/ogdf/files/patch-include_ogdf_basic_System.h
Kurt Jaeger 141a25e582 math/ogdf: 2012.07 -> 2015.05
Changes:
  http://www.ogdf.net/doku.php/tech:versions#v_201505_baobab

- Remove dependencies on math/abacus and math/coinmp, as they are
  now bundled into the OGDF source tarballs and compiled from there
  (COIN remains optional)
- Point MASTER_SITES to the official OGDF website
- Utilise USES=compiler:features to detect C++11 support, and
  add compiler flags -std=c++11 if so (required for build to complete
  without errors)
- Remove custom do-install recipe, and instead use default
  make install target
- Take maintainership

PR:		207531
Submitted by:	Ben Woods <woodsb02@gmail.com>
2016-03-09 16:49:38 +00:00

20 lines
653 B
C

--- include/ogdf/basic/System.h.orig 2015-05-29 15:36:24 UTC
+++ include/ogdf/basic/System.h
@@ -53,7 +53,7 @@
#define OGDF_SYSTEM_H
-#if defined(OGDF_SYSTEM_OSX)
+#if defined(OGDF_SYSTEM_OSX) || defined(OGDF_SYSTEM_FREEBSD)
#include <stdlib.h>
#elif defined(OGDF_SYSTEM_UNIX) || defined(__MINGW32__)
#include <malloc.h>
@@ -176,7 +176,7 @@ public:
static void *alignedMemoryAlloc16(size_t size) {
#ifdef OGDF_SYSTEM_WINDOWS
return _aligned_malloc(size, 16);
-#elif defined(OGDF_SYSTEM_OSX)
+#elif defined(OGDF_SYSTEM_OSX) || defined(OGDF_SYSTEM_FREEBSD)
// malloc returns 16 byte aligned memory on OS X.
return malloc(size);
#else