On Mon, 25 Jan 2021 07:10:18 +0200, Lucio De Re <lucio.d...@gmail.com> wrote:
lucio.dere> On 1/25/21, Charles Forsyth <charles.fors...@gmail.com> wrote:
lucio.dere> > I've just accepted an important pull request to it that I missed, 
until I
lucio.dere> > [...]
lucio.dere> Under NetBSD 9.1, I needed to add -D_NETBSD_SOURCE to get rid of
lucio.dere> warnings for undefined initgroups() and ruserok(). The compiler seem
lucio.dere> to recommend getgroups() and cuserid() as alternatives. I'm not sure
lucio.dere> how best to deal with this for other platforms.

Charles, with the version I pulled down on Friday, I had to change the
start of plan9.h to get it to build cleanly on FreeBSD 12.2:

#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#elif !defined(__FreeBSD__)     /* !defined added by Dworkin */
/* magic to get SUSV2 standard, including pread, pwrite*/
#define _XOPEN_SOURCE 500
#endif

Defining _XOPEN_SOURCE on FreeBSD 12 suppresses the visibility of a
goodly amount of the BSD-related calls, including ruserok().

Dworkin

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tee2220301f2a891c-Md9caea9503919914ff24231f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to