mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
poppler: fix missing include
Backport a patch to ensure that stdio.h is included before jpeglib.h. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
|||||||
|
From 2986f06c7cc9d64a506ebe861b8bf38f73386e86 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jordan Abrahams-Whitehead <ajordanr@google.com>
|
||||||
|
Date: Tue, 16 May 2023 18:52:19 +0000
|
||||||
|
Subject: [PATCH] Add missing #include <cstdio> prior to jpeglib.h
|
||||||
|
|
||||||
|
Fixes #1398
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||||
|
---
|
||||||
|
goo/JpegWriter.cc | 2 +-
|
||||||
|
poppler/ImageEmbeddingUtils.cc | 1 +
|
||||||
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
|
||||||
|
index ca69fd055..566ee38f8 100644
|
||||||
|
--- a/goo/JpegWriter.cc
|
||||||
|
+++ b/goo/JpegWriter.cc
|
||||||
|
@@ -23,7 +23,7 @@
|
||||||
|
#ifdef ENABLE_LIBJPEG
|
||||||
|
|
||||||
|
# include "poppler/Error.h"
|
||||||
|
-
|
||||||
|
+# include <cstdio>
|
||||||
|
extern "C" {
|
||||||
|
# include <jpeglib.h>
|
||||||
|
}
|
||||||
|
diff --git a/poppler/ImageEmbeddingUtils.cc b/poppler/ImageEmbeddingUtils.cc
|
||||||
|
index 0c13fe968..07b9dfb62 100644
|
||||||
|
--- a/poppler/ImageEmbeddingUtils.cc
|
||||||
|
+++ b/poppler/ImageEmbeddingUtils.cc
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
#ifdef ENABLE_LIBJPEG
|
||||||
|
+# include <cstdio>
|
||||||
|
extern "C" {
|
||||||
|
# include <jpeglib.h>
|
||||||
|
}
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
@@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
|
|||||||
file://0001-Do-not-overwrite-all-our-build-flags.patch \
|
file://0001-Do-not-overwrite-all-our-build-flags.patch \
|
||||||
file://basename-include.patch \
|
file://basename-include.patch \
|
||||||
file://0001-cmake-Do-not-use-isystem.patch \
|
file://0001-cmake-Do-not-use-isystem.patch \
|
||||||
|
file://jpeg-stdio.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1"
|
SRC_URI[sha256sum] = "b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user