diff --git a/scripts/build-ocl.sh b/scripts/build-ocl.sh
index c1d97badde6c0e15397fbcd1a575a035655e942e..dab8cdd657dd42fa8c48b085bee4c2b9d6464d26 100644
--- a/scripts/build-ocl.sh
+++ b/scripts/build-ocl.sh
@@ -10,8 +10,8 @@ git clone --branch v2.3.1 https://github.com/OCL-dev/ocl-icd
 cd ocl-icd
 curl -L -O https://raw.githubusercontent.com/conda-forge/ocl-icd-feedstock/e2c03e3ddb1ff86630ccf80dc7b87a81640025ea/recipe/install-headers.patch
 git apply install-headers.patch
-curl -L -O https://github.com/isuruf/ocl-icd/commit/3862386b51930f95d9ad1089f7157a98165d5a6b.patch
-git apply 3862386b51930f95d9ad1089f7157a98165d5a6b.patch
+curl -L -O https://github.com/isuruf/ocl-icd/commit/307f2267100a2d1383f0c4a77344b127c0857588.patch
+git apply 307f2267100a2d1383f0c4a77344b127c0857588.patch
 autoreconf -i
 chmod +x configure
 ./configure --prefix=/usr