[PATCH] fake pre-processor macros when building on non-FreeBSD system

Alexander Kabaev kabaev at gmail.com
Tue Jul 12 20:43:47 UTC 2011


On Tue, 12 Jul 2011 22:00:56 +0200
Robert Millan <rmh at debian.org> wrote:

> 2011/7/12 Oliver Pinter <oliver.pntr at gmail.com>:
> > +.if ${OPSYS} != "FreeBSD"
> >
> > and what's the status example on NetBSD?
> 
> I didn't think of it.  There are some instances of __NetBSD__ and also
> __OpenBSD__ in the kernel tree, and the same problem can be fixed for
> these two systems with minimal effort.
> 
> Here's a new version of the patch, which also adds -U__NetBSD__ and
> -U__OpenBSD__ to CFLAGS.
> 
> -- 
> Robert Millan

Whatever happened to using a proper cross-tool to do the job? Why is
this hack needed?

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110712/8951964e/signature.pgp


More information about the freebsd-hackers mailing list