aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.h.pre
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-13 11:26:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-13 11:26:12 +0000
commit814b41ea4b9a164160af761e33b09e8f7efaafa3 (patch)
treef83b1c37fb9c42a7434dc48d93e1ec0cba8a9b05 /config.h.pre
parent6ca7be8f333b28c465a7b7d961bddcb31d59d72f (diff)
downloadmandoc-814b41ea4b9a164160af761e33b09e8f7efaafa3.tar.gz
mandoc-814b41ea4b9a164160af761e33b09e8f7efaafa3.tar.zst
mandoc-814b41ea4b9a164160af761e33b09e8f7efaafa3.zip
Compatibility support fgetln() on Linux. This uses the BSD-licensed
implementation from NetBSD tnftpd, Christos Zoulas (copyright message retained in the compat_fgetln.c file). Patch verified by schwarze@. He notes that you'll need -pthread for -static binaries (due to libdb), so I've noted that -static should really only be used for BSD UNIX. While here, add some forgotten goop to the Makefile, building and cleaning extra manpages.
Diffstat (limited to 'config.h.pre')
-rw-r--r--config.h.pre2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.h.pre b/config.h.pre
index a309ed95..bc594784 100644
--- a/config.h.pre
+++ b/config.h.pre
@@ -4,3 +4,5 @@
#if defined(__linux__) || defined(__MINT__)
# define _GNU_SOURCE /* strptime(), getsubopt() */
#endif
+
+#include <stdio.h>