diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-13 11:26:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-13 11:26:12 +0000 |
commit | 63b4f6c9bed49f0b41f7ccccb52f3283e4e1a12a (patch) | |
tree | 23471cf05066c31d9632361b24a16a5997bd1459 /config.h.pre | |
parent | c42838fef393e5adf1aa518e01ad6d6a81fdacac (diff) | |
download | mandoc-63b4f6c9bed49f0b41f7ccccb52f3283e4e1a12a.tar.gz |
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.pre | 2 |
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> |