[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Patch: dyngen-exec.h for OpenBSD
From: |
M. Warner Losh |
Subject: |
Re: [Qemu-devel] Patch: dyngen-exec.h for OpenBSD |
Date: |
Mon, 02 Apr 2007 08:58:51 -0600 (MDT) |
In message: <address@hidden>
Thiemo Seufer <address@hidden> writes:
: I made that "#ifdef _BSD" based on the assumption it is ok for all
: BSD variants, including Darwin.
_BSD isn't defined on all variants of BSD. sys/param.h defines BSD to
be 199506 on all BSD systems (at least all of them derived from 4.4BSD
lite). sys/param.h also defines BSD4_3 and BSD4_4. FreeBSD defines
__FreeBSD__ in the compiler, NetBSD defined __NetBSD__, OpenBSD
defines __OpenBSD__. I'm unsure what darwin/osx define.
so unless I missed a change elsewhere in the build system to define
_BSD, this change needs some more thought.
Warner