summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/chktex-1.7.1-PATCHES/patch-07-kpathsea
blob: bbe955aaf09053d43d53f75003c289aa407904e8 (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
diff -ur chktex-1.7.1.orig/ChkTeX.c chktex-1.7.1/ChkTeX.c
--- chktex-1.7.1.orig/ChkTeX.c	2012-07-26 12:44:22.000000000 +0200
+++ chktex-1.7.1/ChkTeX.c	2012-10-10 11:34:16.000000000 +0200
@@ -27,8 +27,12 @@
  */
 
 
-#include "getopt.h"
 #include "ChkTeX.h"
+#ifdef KPATHSEA
+#include <kpathsea/getopt.h>
+#else
+#include <getopt.h>
+#endif
 #include "OpSys.h"
 #include "Utility.h"
 #include "FindErrs.h"
diff -ur chktex-1.7.1.orig/ChkTeX.h chktex-1.7.1/ChkTeX.h
--- chktex-1.7.1.orig/ChkTeX.h	2012-08-04 21:28:49.000000000 +0200
+++ chktex-1.7.1/ChkTeX.h	2012-10-10 11:32:49.000000000 +0200
@@ -38,6 +38,10 @@
 #  include CONFIG_H_NAME
 #endif
 
+#ifdef KPATHSEA
+#include <kpathsea/config.h>
+#endif
+
 #include <ctype.h>
 #include <math.h>
 #include <stdio.h>