aboutsummaryrefslogtreecommitdiff
path: root/recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch
blob: 6d10125bb7d932f67a28d17b513825ef78483706 (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
--- termcap-2.0.8/termcap.h.compat21
+++ termcap-2.0.8/termcap.h
@@ -34,7 +34,11 @@

 __BEGIN_DECLS

+#if defined(__PMT)	/* XXX glibc-2.1 wants this */
+typedef int (*outfuntype) __PMT((int));
+#else
 typedef int (*outfuntype) __P((int));
+#endif

 extern int tgetent __P((void *__buffer, __const char *__termtype));
 extern int tgetflag __P((__const char *__name));
@@ -44,8 +48,14 @@
	int __vpos));
 extern char *tparam __P((__const char *__ctlstring, void *__buffer,
	int __size, ...));
+
+#if defined(__PMT)	/* XXX glibc-2.1 wants this */
+extern void tputs __P((__const char *__string, int __nlines,
+	int (*) __PMT((int))));
+#else
 extern void tputs __P((__const char *__string, int __nlines,
	int (*) __P((int))));
+#endif

 __END_DECLS