From owner-freebsd-hackers Tue May 20 22:19:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA19147 for hackers-outgoing; Tue, 20 May 1997 22:19:17 -0700 (PDT) Received: from superior.mooseriver.com (ppp010-sm2.sirius.com [205.134.231.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA19140 for ; Tue, 20 May 1997 22:19:13 -0700 (PDT) Received: (from jgrosch@localhost) by superior.mooseriver.com (8.8.5/8.8.5) id WAA08921 for hackers@freebsd.org; Tue, 20 May 1997 22:19:11 -0700 (PDT) From: Josef Grosch Message-Id: <199705210519.WAA08921@superior.mooseriver.com> Subject: Porting question To: hackers@freebsd.org Date: Tue, 20 May 1997 22:19:11 -0700 (PDT) Reply-To: jgrosch@superior.mooseriver.com X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I know this issue has been beat to death several times before BUT..... I am porting a piece of code to FreeBSD and gcc bitches about this; extern char* sys_errlist[]; Now the fast way to handle this is; #ifndef __FreeBSD__ extern char* sys_errlist[]; #endif But this is very non-portable. Any suggestions as the correct way to handle this would be helpful. Josef -- Josef Grosch | Another day closer to a | FreeBSD 2.2.1 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses