Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 1995 09:50:24 -0500
From:      "Paul F. Werkowski" <pw@snoopy.mv.com>
To:        Lyndon Nerenberg (VE7TCP) <lyndon@orthanc.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: libraries 
Message-ID:  <199512311450.JAA01270@snoopy.mv.com>
In-Reply-To: <199512301845.KAA08824@multivac.orthanc.com>
References:  <Pine.BSD/.3.91.951230121928.6752A-100000@gateway.net.hk> <199512301845.KAA08824@multivac.orthanc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "lyndon" == VE7TCP  <Lyndon> writes:

>>>>> "John" == John Beukema <john@gateway.net.hk> 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 <sys/param.h> #if (!defined(BSD) || (BSD <
    lyndon> 199306) /* define sys_errlist as appropriate for your
    lyndon> system */ #endif

So, <sys/param.h> 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 <sys/param.h>
/* 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512311450.JAA01270>