From owner-freebsd-ports Tue Aug 6 04:47:14 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA15327 for ports-outgoing; Tue, 6 Aug 1996 04:47:14 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA15321 for ; Tue, 6 Aug 1996 04:47:07 -0700 (PDT) Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id EAA20582 for ; Tue, 6 Aug 1996 04:47:03 -0700 (PDT) Received: (from narvi@localhost) by haldjas.folklore.ee (8.6.12/8.6.12) id OAA20706; Tue, 6 Aug 1996 14:50:50 +0300 Date: Tue, 6 Aug 1996 14:50:49 +0300 (EET DST) From: Narvi To: "Christoph P. Kukulies" cc: freebsd-ports@freefall.freebsd.org Subject: Re: syserrlist (how to define out) In-Reply-To: <199608061107.NAA09467@gilberto.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 6 Aug 1996, Christoph P. Kukulies wrote: > The porting section in the handbook says to use __FreeBSD__ sparsely. > So what would be the correct method to outcondition a > > extern char *sys_errlist[]; > > bogon? > > I was tempted to use #ifndef __FreeBSD__ but after reading the > porting recommendations I'm in doubt. The configure script of > the package I'm trying to port doesn't seem to detect and BSDism > so I don't have another symbol I can rely on unless I add one > one the Makefile or configure script. > > Comments? > The portying section also talks about sys/params.h and BSD. Basicly - you use something like #ifdef USE_PARAM_H #include #endif and then check if BSD is defined... Sander > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de >