Solaris x86 compile error

Gert Doering (gert@greenie.muc.de)
Sat, 14 Aug 1999 01:05:31 +0200


Hi,

On Fri, Aug 13, 1999 at 10:08:28AM -0400, Cary T. Conrad wrote:
> gcc -O2 -Wall -pipe -Dsolaris86 -DAUTO_PPP
> -DFAX_SPOOL_IN=\"/var/spool/fax/incom
> ing\" -c mgetty.c
> In file included from mgetty.c:23:
> mgetty.h:277: conflicting types for `getopt'
> /usr/local/lib/gcc-lib/i486-sun-solaris2.5.1/2.7.2.2/include/stdlib.h:154:

Add " && !defined(solaris86)" to mgetty.h, line 276 (right before the
"extern int getopt" declaration).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de