https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252720

--- Comment #4 from Julio Merino,+1 347 694 0576,New York City 
<j...@freebsd.org> ---
Created attachment 221660
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221660&action=edit
Avoid __BYTE_ORDER__

I scanned the stable/12 source tree and found a bunch of files that query
__BYTE_ORDER__. Most seem to have provisions for this macro not being defined,
but a couple of them do not. The attached patch seems to have helped generate a
new powerpc64 userland that works well.

I do not know if this kind of patch is desired, or if instead sys/endian.h or
something like that should be modified to define __BYTE_ORDER__ in terms of
other available macros when the former is detected to be missing. It seems to
me that this would be slightly more robust.

There is also the question of how this problem slipped through QA into a
release.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to