summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 4d900ef0d..a50591a5f 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -21,8 +21,12 @@
#include <sys/stat.h>
#include <dirent.h>
#ifdef USE_OPENCL
+#if defined(__APPLE__)
+#include <OpenCL/cl.h>
+#else
#include <CL/cl.h>
#endif
+#endif
/*
* It seems WinXP doesn't align the stack of new threads to 16 bytes.
* To prevent crashes in SSE functions, we need to force stack alignement