From owner-freebsd-hackers Sun Feb 26 02:11:21 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id CAA18775 for hackers-outgoing; Sun, 26 Feb 1995 02:11:21 -0800 Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id CAA18769 for ; Sun, 26 Feb 1995 02:11:18 -0800 Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id LAA04690; Sun, 26 Feb 1995 11:03:41 +0100 From: Luigi Rizzo Message-Id: <199502261003.LAA04690@labinfo.iet.unipi.it> Subject: Re: A couple of points about ports To: bde@zeta.org.au (Bruce Evans) Date: Sun, 26 Feb 1995 11:03:41 +0100 (MET) Cc: hackers@FreeBSD.org In-Reply-To: <199502251939.GAA27825@godzilla.zeta.org.au> from "Bruce Evans" at Feb 26, 95 06:39:39 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1127 Sender: hackers-owner@FreeBSD.org Precedence: bulk > >A lot of ports under 2.X suffer from a different definition of "sys_errlist" > >Most of the times the patches symply remove the offending line in the > >source. Is there any better way ? In stdio.h, there are a couple of > > The correct way is to remove all declarations and explicit use of > sys_errlist and sys_nerr and use strerror(). This is a worse way > if you want a quick and dirty port. Well you suggest how to fix the code, but a lot of code already exists and new one will come out with the wrong (for FreeBSD 2.X) declarations. Anyways, if I remember well, the actual problem is that in stdio.h there are a couple of __const in the declaration of sys_errlist which do not appear in the offending sources. Could we try to compile them with -D__const= ? Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 ====================================================================