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

Xin LI delphij at delphij.net
Fri May 9 18:36:36 UTC 2008


-----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-----


More information about the freebsd-hackers mailing list