diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch b/meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch new file mode 100644 index 0000000000..d97d4ecd7d --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | base/genht.c: add a preprocessor define to allow fopen calling | ||
2 | |||
3 | The commit in upstream: | ||
4 | http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643 | ||
5 | |||
6 | Replace all fopen calls with gp_fopen and add a preprocessor define so | ||
7 | that any unintential calls directly to fopen will cause an error. | ||
8 | |||
9 | Only exceptions are those in the platform specific code, and mkromfs.c. | ||
10 | This patch add a preprocessor define to allow fopen calling in base/genht.c. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | base/genht.c | 4 ++++ | ||
17 | 1 file changed, 4 insertions(+) | ||
18 | |||
19 | diff --git a/base/genht.c b/base/genht.c | ||
20 | index 4b04085..cc82fff 100644 | ||
21 | --- a/base/genht.c | ||
22 | +++ b/base/genht.c | ||
23 | @@ -16,6 +16,10 @@ | ||
24 | |||
25 | /* Generate C code for compiling halftones into ROM. */ | ||
26 | #include "malloc_.h" | ||
27 | + | ||
28 | +/* prevent gp.h from defining fopen */ | ||
29 | +#define fopen fopen | ||
30 | + | ||
31 | #include "stdio_.h" | ||
32 | #include "string_.h" | ||
33 | #include "gscdefs.h" | ||
34 | -- | ||
35 | 1.8.1.2 | ||
36 | |||