correct #define in source to specify FBSD vs. linux?

Garrett Cooper yanefbsd at gmail.com
Sun May 11 13:40:56 UTC 2008


On May 9, 2008, at 11:36 AM, Xin LI wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Steve Franks wrote:
> | Seems there is a more appropriate list for my earlier question to
> | freebsd-questions:
> |
> | On and on I charge porting linux engineering tools.  Major pita.  I
> | see a bunch of #ifdef __APPLE__ lines to pull in alternate headers;
> | what's the equiv for FreeBSD?
>
> #ifdef __FreeBSD__?
>
> - --
> Xin LI <delphij at delphij.net>	http://www.delphij.net/
> FreeBSD - The Power to Serve!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (FreeBSD)
>
> iEYEARECAAYFAkgkmaoACgkQi+vbBBjt66C30ACeIbw6P7CuwErAIvzcUjX4d4Gk
> 7G0An3+S2hM9YctAkKsWDVzkEoZIMhOH
> =AzxS
> -----END PGP SIGNATURE-----

#ifdef __linux__ for Linux as well.

See: http://lists.debian.org/debian-devel/2001/01/msg00971.html (same  
applies for all platforms I would assume)..

-Garrett


More information about the freebsd-hackers mailing list