Re: O_NOFOLLOW on NetBSD

2017-08-15 Thread Bruno Haible
Paul Eggert wrote: > 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

Re: O_NOFOLLOW on NetBSD

2017-08-14 Thread Paul Eggert
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=text/x-cvsweb-markup

O_NOFOLLOW on NetBSD

2017-08-14 Thread Bruno Haible
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=text/x-cvsweb-markup How about this patch? 2017-08-14 Bruno Haible