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

Julian Elischer julian at elischer.org
Fri May 9 18:44:04 UTC 2008


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?

__FreeBSD__
but it is more fine grained than that..
http://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.html
(and the next page)

maybe you should read the entire porter's handbook :-)

> 
> Thanks,
> Steve
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"



More information about the freebsd-hackers mailing list