Bruno Haible wrote:
Gnulib makes use of O_NOFOLLOW in a couple of places. On NetBSD, this definition
(and some others) are only enabled under _NETBSD_SOURCE. See
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/fcntl.h?rev=1.48&content-type=text/x-cvsweb-markup
https://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/sys/featuretest.h
says that defining _NETBSD_SOURCE should be helpful only if _ANSI_SOURCE,
_POSIX_SOURCE, _POSIX_C_SOURCE, or _XOPEN_SOURCE is defined. I suppose it
shouldn't hurt to define _NETBSD_SOURCE, to handle these (presumably rare)
configurations.