[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: __FreeBSD__ define



On Wed, 29 Mar 2006, Brian M. Carlson wrote:

> > It seems the Debian/KFreeBSD port doesn't have __FreeBSD__ define.
> 
> That is correct.
> 
> > Is __FreeBSD__ only for the Real FreeBSD, and if yes, what should the
> > code check for instead or in addition?

> To answer your question in this case, yes, GNU/kFreeBSD does the same
> thing.  In fact, it has the same file.  So you could change:
> #ifndef __FreeBSD__
> to
> #if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
> or something equivalent.

Thanks, committed upstream.

Cheers,
Peter

> [Sorry if you get this twice, I didn't know if you were subscribed and I
> wanted you to get this.]
[ Thanks.  While I'm subscribe I generally prefer CCs.  (just because
  I'm subscribed doesn't mean I remember reading the list :).  Mutt
  config adjusted. ]
-- 
 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :      The  universal
                           | `. `'      Operating System
 http://www.palfrader.org/ |   `-    http://www.debian.org/



Reply to: