[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [mpop-users] unportable setting of errno
On Tue, 09. Jan 2007, 20:50:21 -0600, Jeremy C. Reed wrote:
> Why does the code have "extern int errno"?
Because of a buggy errno(3) man page in Debian stable...
> This is not portable and not POSIX. If you want errno, then do
> #include <errno.h>
You're right.
> Did you have any example why it was needed? (I didn't read your cvs logs
> to see.)
No. The errno(3) man page in Debian testing says that it was needed in
traditional C and some very old UNIX versions. I think this is
irrelevant now.
> Here is a patch to remove it.
Thanks! I applied it.
Martin