#3833: mutt 1.6.0 does't compile on Solaris 11 because M_READ is already defined
in /usr/include/sys/stream.h
---------------------+----------------------
Reporter: mutti | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: mutt | Version: 1.6.0
Resolution: | Keywords: solaris
---------------------+----------------------
Comment (by kevin8t8):
I believe OpenSolaris (and OpenIndiana, etc), are in the wrong here.
"internal" macros, and especially those indirectly included, should be
prefixed with "_" or double-underscore unless they are reserved.
https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html has
a nice write-up about this.
It looks like a bug was opened at https://www.illumos.org/issues/6856
about this, and in my opinion it should be fixed properly in the OS.
Now, my ranting done, I realize that likely isn't going to happen with
OpenSolaris. :-)
Vincent, you mentioned renaming these flags would break patches. Do you
have an idea of how bad the breakage would be. Do any contributors/devs
have other suggestions about a _clean_ way to fix this?
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3833#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent