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

Oliver Pinter oliver.pntr at gmail.com
Tue Jul 12 21:59:14 UTC 2011


On 7/12/11, 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
>

This seem like an ugly hack..
Please keep in your mind, FreeBSD is not linux; and I hope, never be


More information about the freebsd-hackers mailing list