Date: Wed, 5 Feb 1997 23:40:07 -0500 (EST) From: Thomas David Rivers <ponds!rivers@dg-rtp.dg.com> To: ponds!zeta.org.au!bde, imp@village.org Cc: ponds!FreeBSD.ORG!freebsd-ports, ponds!FreeBSD.ORG!hackers, ponds!NUXI.com!obrien Subject: Re: conditionally including <sys/param.h> Message-ID: <199702060440.XAA26231@lakes.water.net>
next in thread | raw e-mail | index | archive | help
Warner Losh writes:
>
> In message <199702051745.EAA12664@godzilla.zeta.org.au> Bruce Evans writes:
> : strerror() doesn't exist on old systems.
>
> True. But how old is old?
This is a good point; and brings up one of
Dave's Portable Programing Axioms
If a standard function is missing; provide it in a compatibility
library - avoid kludges such as #ifdef's. You'll have greatly
improved legibility of the source, while helping future portability.
As a case in point, in one of my older compatibility libraries, you
can find strerror(). I believe it was missing on SunOS 3.5, some time
ago :-)
- Dave Rivers -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702060440.XAA26231>
