Alan Barrett writes: > On Fri, 18 Apr 2014, matthew green wrote: > >> don't include fmemopen in tools builds. Since tools does not > >> define _NETBSD_SOURCE, we don't get the fmemopen prototype > > > > hmm.... is that because we define _SOMEOTHER_SOURCE? > > > > _NETBSD_SOURCE should be defined normally, unless you start to > > ask for restricted namespaces... > > src/tools/compat/compat_defs.h goes to a lot of trouble to ensure > that _NETBSD_SOURCE does not get defined. I don't understand why > that is done.
indeed. that's probably a good idea in general -- it means that we're going to have a restricted environment for tools, even on netbsd, which helps keep them portable to other platforms. .mrg.