|File: [cvsweb.bsd.lv] / mandoc / Attic / test-fgetln.c (download)
Revision 1.1, Tue Dec 13 11:26:12 2011 UTC (10 years, 5 months ago) by kristaps
CVS Tags: VERSION_1_12_3, VERSION_1_12_2, VERSION_1_12_1
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.
cp = fgetln(stdin, &sz);