summaryrefslogtreecommitdiffstats
path: root/config.h.post
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-01-01 17:14:26 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-01-01 17:14:26 +0000
commit92f665747e9d9aecac7c203e53d4eb175e662fc8 (patch)
tree343b938cade639d1cbcc09a9a00911f2789ee947 /config.h.post
parent21ddc0a002b54301ac9de5f6dd73928ed0d73a94 (diff)
downloadmandoc-92f665747e9d9aecac7c203e53d4eb175e662fc8.tar.gz
Big check-in of compatibility layer. This should work on most major architectures. Thanks to Joerg Sonnenberger.
Diffstat (limited to 'config.h.post')
-rw-r--r--config.h.post25
1 files changed, 25 insertions, 0 deletions
diff --git a/config.h.post b/config.h.post
new file mode 100644
index 00000000..81c01b93
--- /dev/null
+++ b/config.h.post
@@ -0,0 +1,25 @@
+#include <sys/types.h>
+
+#if !defined(__BEGIN_DECLS)
+# ifdef __cplusplus
+# define __BEGIN_DECLS extern "C" {
+# else
+# define __BEGIN_DECLS
+# endif
+#endif
+#if !defined(__END_DECLS)
+# ifdef __cplusplus
+# define __END_DECLS }
+# else
+# define __END_DECLS
+# endif
+#endif
+
+#ifndef HAVE_STRLCAT
+extern size_t strlcat(char *, const char *, size_t);
+#endif
+#ifndef HAVE_STRLCPY
+extern size_t strlcpy(char *, const char *, size_t);
+#endif
+
+#endif /* MANDOC_CONFIG_H */