File: fix-missing-includes.patch

package info (click to toggle)
c2esp 27-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 688 kB
  • sloc: ansic: 1,966; sh: 1,000; makefile: 33; python: 8
file content (23 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix various missing includes
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2016-10-03
--- a/src/command2esp.c
+++ b/src/command2esp.c
@@ -44,6 +44,7 @@
 #include <cups/cups.h>
 #include <cups/sidechannel.h> //FlushBackChannel, and the side channel functions and constants
 #include "string.h"
+#include "strings.h" // strncasecmp
 #include <ctype.h> 
 #include <fcntl.h> //files
 #include <time.h> //time functions used for debugging
--- a/src/c2espcommon.h
+++ b/src/c2espcommon.h
@@ -19,6 +19,7 @@
  */
 
 #include <cups/sidechannel.h> //FlushBackChannel, and the side channel functions and constants
+#include <stdio.h> // FILE
 #include <fcntl.h> //files
 #include <time.h> //time functions used for debugging