Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 1997 09:43:03 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        jgrosch@superior.mooseriver.com
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Porting question
Message-ID:  <199705211643.JAA03451@phaeton.artisoft.com>
In-Reply-To: <199705210519.WAA08921@superior.mooseriver.com> from "Josef Grosch" at May 20, 97 10:19:11 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

Do not directly reference sys_errlist[] in your code, use strerror()
instead.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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