From owner-freebsd-hackers Sun Dec 31 07:26:27 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA09306 for hackers-outgoing; Sun, 31 Dec 1995 07:26:27 -0800 (PST) Received: from snoopy.mv.com (snoopy.mv.com [199.125.64.182]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA09284 for ; Sun, 31 Dec 1995 07:26:22 -0800 (PST) Received: (from pw@localhost) by snoopy.mv.com (8.6.12/8.6.9) id JAA01270; Sun, 31 Dec 1995 09:50:24 -0500 Date: Sun, 31 Dec 1995 09:50:24 -0500 From: "Paul F. Werkowski" Message-Id: <199512311450.JAA01270@snoopy.mv.com> To: Lyndon Nerenberg (VE7TCP) Cc: hackers@FreeBSD.ORG Subject: Re: libraries In-Reply-To: <199512301845.KAA08824@multivac.orthanc.com> References: <199512301845.KAA08824@multivac.orthanc.com> Sender: owner-hackers@FreeBSD.ORG Precedence: bulk >>>>> "lyndon" == VE7TCP writes: >>>>> "John" == John Beukema writes: John> This error is a commonn problem. Comment it out in httcp.c John> or add #ifndef __FreeBSD__ #endif (from memory) around the John> declaration. One is defined as char * and the other as John> const char * as I remember. jbeukema lyndon> The correct fix for sys_errlist declarations is: lyndon> #include #if (!defined(BSD) || (BSD < lyndon> 199306) /* define sys_errlist as appropriate for your lyndon> system */ #endif So, is present on all systems that have a C compiler or just systems with compilers that define the 'unix' macro, or just BSD derived systems? Does one need #if defined __FreeBSD__ || defined __listOfOthersKnownToHaveParam_ .. #include /* tests for various flavors of BSD go here */ #endif Offhand, it looks like the OS dependent feature is hidden in an OS dependent file. It seems to me that the compiler ought to emit the root feature list in some standard way so that codes can have some predictable behaviour. Paul