From owner-freebsd-ports@FreeBSD.ORG Fri Dec 23 17:45:38 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C206D16A41F for ; Fri, 23 Dec 2005 17:45:38 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D98243D76 for ; Fri, 23 Dec 2005 17:45:33 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jBNHjWH15074; Fri, 23 Dec 2005 09:45:32 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id RAA06461; Fri, 23 Dec 2005 17:44:49 GMT Message-Id: <200512231744.RAA06461@sopwith.solgatos.com> To: vd@datamax.bg In-reply-to: Your message of "Fri, 23 Dec 2005 08:58:59 +0200." <20051223065859.GA27361@qlovarnika.bg.datamax> Date: Fri, 23 Dec 2005 09:44:49 +0000 From: Dieter Cc: freebsd-ports@freebsd.org Subject: Re: compiler can't tell int from function? nmh-1.0.4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 17:45:38 -0000 > > ../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 > > 10 #include > > 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.