From 63b4f6c9bed49f0b41f7ccccb52f3283e4e1a12a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 13 Dec 2011 11:26:12 +0000 Subject: 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. --- config.h.post | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h.post') diff --git a/config.h.post b/config.h.post index 62ce4ea6..39da2b2f 100644 --- a/config.h.post +++ b/config.h.post @@ -35,5 +35,8 @@ extern size_t strlcpy(char *, const char *, size_t); extern int getsubopt(char **, char * const *, char **); extern char *suboptarg; #endif +#ifndef HAVE_FGETLN +extern char *fgetln(FILE *, size_t *); +#endif #endif /* MANDOC_CONFIG_H */ -- cgit