From 75f50fbbf1ea135fbc8725c254529cfdfeab6a7d Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 3 Dec 2015 17:47:19 -0600
Subject: [PATCH] Broaden applicability of buffer interface fallback

---
 pyopencl/cffi_cl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py
index e5a724ba..1d8b4d7f 100644
--- a/pyopencl/cffi_cl.py
+++ b/pyopencl/cffi_cl.py
@@ -843,7 +843,7 @@ if _PYPY:
             raise LogicError("PyOpencl on PyPy only accepts numpy arrays "
                              "and scalars arguments", status_code.INVALID_VALUE)
 
-elif sys.version_info >= (2, 7):
+elif sys.version_info >= (2, 7, 4):
     import ctypes
     try:
         # Python 2.6 doesn't have this.
-- 
GitLab