summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/termcap.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libncurses/termcap.h')
-rw-r--r--lib/libncurses/termcap.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/libncurses/termcap.h b/lib/libncurses/termcap.h
index 9a5dd32..68fa7e5 100644
--- a/lib/libncurses/termcap.h
+++ b/lib/libncurses/termcap.h
@@ -1,14 +1,41 @@
#ifndef _TERMCAP_H
#define _TERMCAP_H 1
+#ifdef __FreeBSD__
#include <sys/cdefs.h>
+#else
+#ifndef __P
+#if defined(__STDC__) || defined(__cplusplus)
+#define __P(protos) protos
+#else
+#define __P(protos) () /* traditional C preprocessor */
+#endif
+#endif
+#ifndef __BEGIN_DECLS
+#ifdef __cplusplus
+#define __BEGIN_DECLS extern "C" {
+#define __END_DECLS };
+#else
+#define __BEGIN_DECLS
+#define __END_DECLS
+#endif
+#endif
+#endif
__BEGIN_DECLS
+#ifndef __FreeBSD__
+#include <sys/types.h>
+#endif
+
extern char PC;
extern char *UP;
extern char *BC;
+#ifdef __FreeBSD__
extern short ospeed;
+#else
+extern speed_t ospeed;
+#endif
extern int tgetent __P((char *, const char *));
extern int tgetflag __P((const char *));
OpenPOWER on IntegriCloud