blob: f259b5f05de7e2b4619cb94b3427a1f9af7cf8de [file] [log] [blame]
Brad Bishop7f28bc52017-12-03 23:42:40 -05001From 7ef9c040dd959105c16d4dc67e14f3bbea25e77f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Dec 2016 19:51:19 +0000
4Subject: [PATCH] include cups/ppd.h for missing ppd definitions
5
6Fixes errors spotted by clang
7
8| prnt/hpcups/HPCupsFilter.cpp:365:18: error: use of undeclared identifier 'ppdFindAttr'
9| if (((attr = ppdFindAttr(m_ppd, "hpPrinterLanguage", NULL)) == NULL) ||
10| ^
11| prnt/hpcups/HPCupsFilter.cpp:368:13: error: use of undeclared identifier 'ppdClose'
12| ppdClose(m_ppd);
13| ^
14| prnt/hpcups/HPCupsFilter.cpp:444:9: error: use of undeclared identifier 'ppdClose'
15| ppdClose(m_ppd);
16| ^
17| prnt/hpcups/HPCupsFilter.cpp:497:13: error: use of undeclared identifier 'ppdOpenFile'
18| m_ppd = ppdOpenFile(getenv("PPD"));
19| ^
20
21Signed-off-by: Khem Raj <raj.khem@gmail.com>
22---
23Upstream-Status: Pending
24
25 prnt/hpcups/HPCupsFilter.h | 1 +
26 1 file changed, 1 insertion(+)
27
28diff --git a/prnt/hpcups/HPCupsFilter.h b/prnt/hpcups/HPCupsFilter.h
29index 0431a7a..eb0cad6 100644
30--- a/prnt/hpcups/HPCupsFilter.h
31+++ b/prnt/hpcups/HPCupsFilter.h
32@@ -37,6 +37,7 @@
33 #include "Job.h"
34
35 #include "dbuscomm.h"
36+#include <cups/ppd.h>
37
38 #define DBITMAPFILEHEADER 14
39 #define DBITMAPINFOHEADER 40
40--
411.9.1
42