From 814b41ea4b9a164160af761e33b09e8f7efaafa3 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. --- test-fgetln.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test-fgetln.c (limited to 'test-fgetln.c') diff --git a/test-fgetln.c b/test-fgetln.c new file mode 100644 index 00000000..90869cd8 --- /dev/null +++ b/test-fgetln.c @@ -0,0 +1,11 @@ +#include +#include + +int +main(void) +{ + char *cp; + size_t sz; + cp = fgetln(stdin, &sz); + return 0; +} -- cgit v1.2.3