File: 01_ftfont_tools.patch

package info (click to toggle)
dvi2ps 5.1j-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,424 kB
  • sloc: ansic: 15,077; sh: 10,365; makefile: 157
file content (40 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download | duplicates (6)
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
Author: OHURA Makoto <ohura@debian.org>
Description: Patches from Bug#298177.  Thanks to Roger Leigh <rleigh@debian.org>
* ftfont.c: pid and eid should be "unsigned short", in order to
match the prototype of FreeType TT_Get_CharMap_ID().
* tools/nup.c, tools/texfix.c: Add standard headers where
required, and correct a buggy use of a preprocessor conditional.
--- a/tools/nup.c
+++ b/tools/nup.c
@@ -9,7 +9,9 @@
  */
 #define	version	"1.4"
 
+#include	<ctype.h>
 #include	<stdio.h>
+#include	<stdlib.h>
 #include	<string.h>
 
 #define	TRUE	1
--- a/tools/texfix.c
+++ b/tools/texfix.c
@@ -7,8 +7,10 @@
  *	This original program is "retexps" made by takeba@otsl.oki.co.jp.
  */
 #include	<stdio.h>
+#include	<stdlib.h>
 #include	<string.h>
 #include	<signal.h>
+#include	<unistd.h>
 char	*mktemp();
 
 #ifdef	STRSTR
@@ -19,7 +21,7 @@
 #define	BSP	"@beginspecial\n"
 #define	ESP	"@endspecial\n"
 
-#ifdef JDVI2KPS || JDVI2KPS2
+#if defined(JDVI2KPS) || defined(JDVI2KPS2)
 #define	BOP	"@bop0\n"
 #define	EOP	"@eop\n"
 #else