#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
 Keywords:  solaris  |
---------------------+----------------------
 Hi,

 mutt 1.6.0 doesn't compile on Solaris 11

 {{{
 /opt/solarisstudio12.4/bin/cc -DPKGDATADIR=\"/usr/share/mutt\"
 -DSYSCONFDIR=\"/etc/mutt\" -DBINDIR=\"/usr/bin\"
 -DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1 -I.
 -I/tmp/mutt-1.6.0  -I. -I/tmp/mutt-1.6.0 -I/tmp/mutt-1.6.0/imap  -Iintl
 -I/tmp/mutt-1.6.0/intl  -m32 -xO4 -xchip=pentium -xregs=no%frameptr    -mt
 -I/usr/include/idn -c -o getdomain.o /tmp/mutt/mutt-1.6.0/getdomain.c
 "/tmp/mutt-1.6.0/mutt.h", line 86: warning: macro redefined: M_CMD
 "/tmp/mutt-1.6.0/mutt.h", line 180: syntax error before or at: 0x85
 cc: acomp failed for /tmp/mutt-1.6.0/getdomain.c
 }}}

 because M_READ is already defined in `/usr/include/sys/stream.h`:

 {{{
 $ grep M_READ /usr/include/sys/stream.h
 #define M_READ          0x85            /* generate read notification */
 }}}

 I guess the easiest fix would be to rename `M_READ` in `mutt.h`

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3833>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to