summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-05-04 15:26:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-05-04 17:15:03 +0200
commit3f39a7ada7b5cadf71da2fa5307dd456c7f8d735 (patch)
tree54cbb9a751e48065e6fdf4114fd0621df9f78eec /external
parent6990fd3e4199c71fd1490b895ff30ef18d387e52 (diff)
external/libjpeg-turbo: Missing include (for FILE)
Change-Id: Ifb80f4824ab7a89177171f7dc91a2c6bb6f954f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151369 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external')
-rw-r--r--external/libjpeg-turbo/UnpackedTarball_libjpeg-turbo.mk4
-rw-r--r--external/libjpeg-turbo/include.patch12
2 files changed, 16 insertions, 0 deletions
diff --git a/external/libjpeg-turbo/UnpackedTarball_libjpeg-turbo.mk b/external/libjpeg-turbo/UnpackedTarball_libjpeg-turbo.mk
index b3505444c8d6..5c88c8756c28 100644
--- a/external/libjpeg-turbo/UnpackedTarball_libjpeg-turbo.mk
+++ b/external/libjpeg-turbo/UnpackedTarball_libjpeg-turbo.mk
@@ -13,6 +13,10 @@ $(eval $(call gb_UnpackedTarball_set_tarball,libjpeg-turbo,$(LIBJPEG_TURBO_TARBA
$(eval $(call gb_UnpackedTarball_set_patchlevel,libjpeg-turbo,0))
+$(eval $(call gb_UnpackedTarball_add_patches,libjpeg-turbo, \
+ external/libjpeg-turbo/include.patch \
+))
+
# jconfigint.h and jconfig.h generated via
# cmake -DENABLE_STATIC:BOOL=ON -DENABLE_SHARED:BOOL=NO -DWITH_JAVA:BOOL=OFF -DWITH_TURBOJPEG:BOOL=OFF -DWITH_SIMD:BOOL=ON
# and then tweaking
diff --git a/external/libjpeg-turbo/include.patch b/external/libjpeg-turbo/include.patch
new file mode 100644
index 000000000000..0a36075ee7fc
--- /dev/null
+++ b/external/libjpeg-turbo/include.patch
@@ -0,0 +1,12 @@
+--- jpeglib.h
++++ jpeglib.h
+@@ -31,6 +31,9 @@
+ #include "jmorecfg.h" /* seldom changed options */
+
+
++#include <stdio.h>
++
++
+ #ifdef __cplusplus
+ #ifndef DONT_USE_EXTERN_C
+ extern "C" {