[pocl] 03/05: patch the correct file for FreeBSD support

Andreas Beckmann anbe at moszumanska.debian.org
Mon Apr 25 15:54:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository pocl.

commit f75f3c208b221c65566b4f757c3fb2501334fa6c
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Apr 25 16:06:53 2016 +0200

    patch the correct file for FreeBSD support
    
    directly patching include/CL/cl.hpp.in breaks pocl's
    tools/patches/khronos_cl.hpp.patch
---
 debian/patches/freebsd-compat.patch | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/debian/patches/freebsd-compat.patch b/debian/patches/freebsd-compat.patch
index aa2a8cd..7d0d2a6 100644
--- a/debian/patches/freebsd-compat.patch
+++ b/debian/patches/freebsd-compat.patch
@@ -1,13 +1,13 @@
 Description: Fix includes for FreeBSD
 
---- a/include/CL/cl.hpp.in
-+++ b/include/CL/cl.hpp.in
-@@ -211,7 +211,7 @@
- #include <string>
- #endif 
+--- a/tools/patches/khronos_cl.hpp.patch
++++ b/tools/patches/khronos_cl.hpp.patch
+@@ -15,7 +15,7 @@
+  #endif
  
--#if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
-+#if defined(linux) || defined(__APPLE__) || defined(__MACOSX) || defined(__FreeBSD_kernel__)
- #include <alloca.h>
- 
- #include <emmintrin.h>
+ -#if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
+-+#if defined(linux) || defined(__APPLE__) || defined(__MACOSX) || defined(__ANDROID__)
+++#if defined(linux) || defined(__APPLE__) || defined(__MACOSX) || defined(__ANDROID__) || defined(__FreeBSD_kernel__)
+  #include <alloca.h>
+  
+ -#include <emmintrin.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git



More information about the Pkg-opencl-commits mailing list