aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2018-01-28 20:34:39 +0800
committerdumbbell <dumbbell@FreeBSD.org>2018-01-28 20:34:39 +0800
commit52f69163ada207c76ccf92b0a9c3407e9e943d1f (patch)
treebf9331e325c3acfe02c367527d0b00043f73d733 /graphics
parent220779771114a8a5e2d18a05e2dcee824694856e (diff)
downloadfreebsd-ports-gnome-52f69163ada207c76ccf92b0a9c3407e9e943d1f.tar.gz
freebsd-ports-gnome-52f69163ada207c76ccf92b0a9c3407e9e943d1f.tar.zst
freebsd-ports-gnome-52f69163ada207c76ccf92b0a9c3407e9e943d1f.zip
graphics/darktable: Include `stddef.h` when testing zError() symbol
The `CheckZlib.cmake` module uses `NULL` in the test source code to check for the `zError()` symbol. This fails to build on FreeBSD 10.3 with the following error: CheckPrototypeDefinition.c:15:10: error: use of undeclared identifier 'NULL' return NULL; ^ I don't know the root cause for this failure, but including `stddef.h` in this test source code fixes the problem. PR: 225501 Reported by: cpm@
Diffstat (limited to 'graphics')
-rw-r--r--graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake b/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake
new file mode 100644
index 000000000000..d0b623bbef08
--- /dev/null
+++ b/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake
@@ -0,0 +1,11 @@
+--- src/external/rawspeed/cmake/Modules/CheckZLIB.cmake.orig 2018-01-18 18:05:10 UTC
++++ src/external/rawspeed/cmake/Modules/CheckZLIB.cmake
+@@ -38,7 +38,7 @@ endif()
+ CHECK_PROTOTYPE_DEFINITION(zError
+ "const char* zError(int zErrorCode)"
+ "NULL"
+- "zlib.h"
++ "stddef.h;zlib.h"
+ HAVE_ZLIB_ZERROR_PROTOTYPE)
+ if(NOT HAVE_ZLIB_ZERROR_PROTOTYPE)
+ message(SEND_ERROR "Found unexpected prototype for zError() in <zlib.h>")