compiler can't tell int from function? nmh-1.0.4
Dieter
freebsd at sopwith.solgatos.com
Fri Dec 23 09:45:38 PST 2005
> > ../h/prototypes.h:73: warning: function declaration isn't a prototype
> > context_read.c:12: warning: function declaration isn't a prototype
> >=20
> 09 #include <errno.h>
> > 10 #include <pwd.h>
> > 11
> > 12 extern int errno; <-- doesn't look like a function to me?
>
> See errno(2), errno is redefined like this
> #define errno (* __error())
> in /usr/include/errno.h
Oh! Someone changed errno from an int to a function, breaking massive
amounts of code. Bizzare.
Anyway, commenting out line 12 fixed the warning.
Thank you.
More information about the freebsd-ports
mailing list