From f8609806cf5ac60a2e9a63c7c5d112725e5dd08c Mon Sep 17 00:00:00 2001
From: J M Dieterich <dieterich@ogolem.org>
Date: Sat, 3 Oct 2015 20:47:48 -0400
Subject: [PATCH] Do not include malloc.h also on FreeBSD

---
 com.amd.aparapi.jni/src/cpp/Common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/com.amd.aparapi.jni/src/cpp/Common.h b/com.amd.aparapi.jni/src/cpp/Common.h
index 1abcb7e9..7e34ed21 100644
--- a/com.amd.aparapi.jni/src/cpp/Common.h
+++ b/com.amd.aparapi.jni/src/cpp/Common.h
@@ -44,7 +44,7 @@
 #include <string.h>
 #include <time.h>
 
-#ifndef __APPLE__
+#if not defined __APPLE__ && not defined  __FreeBSD__
 #include <malloc.h>
 #endif
 
-- 
GitLab