Date: Fri, 23 Dec 2005 09:44:49 +0000 From: Dieter <freebsd@sopwith.solgatos.com> To: vd@datamax.bg Cc: freebsd-ports@freebsd.org Subject: Re: compiler can't tell int from function? nmh-1.0.4 Message-ID: <200512231744.RAA06461@sopwith.solgatos.com> In-Reply-To: Your message of "Fri, 23 Dec 2005 08:58:59 %2B0200." <20051223065859.GA27361@qlovarnika.bg.datamax>
next in thread | previous in thread | raw e-mail | index | archive | help
> > ../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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512231744.RAA06461>