summaryrefslogtreecommitdiffstats
path: root/recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
committerCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
commit3c6efe8f8abc16668ca5e9cdf7a46665dac87172 (patch)
tree642c13416b99e80f0871cdc6668e832e635dfb48 /recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch
parentc400c874f2ac9233b8a43a73309b6e7907289c54 (diff)
parent13fbe7253c95881ede787004a4c3a1c31502e5c6 (diff)
downloadopenembedded-92103df5ad5a943fbc196ba1e3da3ba6d4f9102f.tar.gz
Merge branch 'master' into testing-nexttested_2010-11-12testing
Diffstat (limited to 'recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch')
-rw-r--r--recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch b/recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch
new file mode 100644
index 0000000000..6d10125bb7
--- /dev/null
+++ b/recipes/termcap/termcap-2.0.8/004_all_termcap-compat-glibc21.patch
@@ -0,0 +1,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