On Tue Sep 08 2009 at 13:25:39 +0000, David Holland wrote: > On Tue, Sep 08, 2009 at 04:18:01PM +0300, Antti Kantee wrote: > > No, __NetBSD__ is right. For all purposes, code in the rump kernel *is* > > NetBSD. E.g. if you have #ifdef __NetBSD__ in a kernel driver which > > was imported from $OtherOS, you must have the rump version think it is > > running on NetBSD, since it technically speaking is. > > You may need to also add -U__FreeBSD__ -U__OpenBSD__...
Hmm, good point. I didn't think of that. I wonder if there's a better solution than an exhaustive list of operating systems? Do we after all need to check against __I_am_the_NetBSD__?