Bug 236460

Summary: graphics/mesa-dri: Fix issues with /usr/include/endian.h (D19500)
Product: Ports & Packages Reporter: Niclas Zeising <zeising>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: New ---    
Severity: Affects Only Me CC: lantw44
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://reviews.freebsd.org/D19500
Bug Depends on:    
Bug Blocks: 236398    

Description Niclas Zeising freebsd_committer 2019-03-11 08:58:39 UTC
In https://reviews.freebsd.org/D19500 a proposal is made to create a symlink from /usr/include/sys/endian.h to /usr/include/endian.h.  This causes issues with mesa-dri:
Use this PR to track progress on this issue.
Comment 1 Niclas Zeising freebsd_committer 2019-03-11 13:39:25 UTC
Seems like this is an issue with our endian.h defining bswap32 (and friends), which also is defined in the mesa source.  I've updated the differential with a comment as to how it seems to break, and why.