svn commit: r306330 - head/usr.bin/mkimg
Marcel Moolenaar
marcel at xcllnt.net
Mon Sep 26 02:34:25 UTC 2016
On September 25, 2016 at 7:13:21 PM, Adrian Chadd (adrian.chadd at gmail.com) wrote:
Hi,
Yeah, for portable-y stuff, I'd recommend:
#include "endian.h" -> #ifdef __FreeBSD__ #include <sys/endian.h>
#elif __Apple__ etc, etc.
That way we don't duplicate contents.
Same with sys/queue.h, etc.
We may even want to do <compat/endian.h>, <compat/queue.h>, etc. The compat directory can be shared by all build utilities that need portability. That way we only have to solve portability problems once. The name compat is but a suggestion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Message signed with OpenPGP using AMPGpg
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160925/92c386c9/attachment.sig>
More information about the svn-src-all
mailing list