aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/hplip/hplip-3.12.6/0001-include-cups-ppd.h-for-missing-ppd-definitions.patch
blob: f259b5f05de7e2b4619cb94b3427a1f9af7cf8de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 7ef9c040dd959105c16d4dc67e14f3bbea25e77f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 16 Dec 2016 19:51:19 +0000
Subject: [PATCH] include cups/ppd.h for missing ppd definitions

Fixes errors spotted by clang

| prnt/hpcups/HPCupsFilter.cpp:365:18: error: use of undeclared identifier 'ppdFindAttr'
|     if (((attr = ppdFindAttr(m_ppd, "hpPrinterLanguage", NULL)) == NULL) ||
|                  ^
| prnt/hpcups/HPCupsFilter.cpp:368:13: error: use of undeclared identifier 'ppdClose'
|             ppdClose(m_ppd);
|             ^
| prnt/hpcups/HPCupsFilter.cpp:444:9: error: use of undeclared identifier 'ppdClose'
|         ppdClose(m_ppd);
|         ^
| prnt/hpcups/HPCupsFilter.cpp:497:13: error: use of undeclared identifier 'ppdOpenFile'
|     m_ppd = ppdOpenFile(getenv("PPD"));
|             ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 prnt/hpcups/HPCupsFilter.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/prnt/hpcups/HPCupsFilter.h b/prnt/hpcups/HPCupsFilter.h
index 0431a7a..eb0cad6 100644
--- a/prnt/hpcups/HPCupsFilter.h
+++ b/prnt/hpcups/HPCupsFilter.h
@@ -37,6 +37,7 @@
 #include "Job.h"
 
 #include "dbuscomm.h"
+#include <cups/ppd.h>
 
 #define		DBITMAPFILEHEADER		14
 #define		DBITMAPINFOHEADER		40
-- 
1.9.1