bug #26121: set_errno can be overridden

This commit is contained in:
goldsimon 2009-04-15 14:33:05 +00:00
parent 4f8f6ba205
commit 3587e8481d
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,9 @@ HISTORY
++ New features:
2009-04-15 Simon Goldschmidt
* sockets.c: bug #26121: set_errno can be overridden
2009-03-31 Kieran Mansley
* tcp.c, tcp_out.c, tcp_in.c, sys.h, tcp.h, opts.h: add support for
TCP timestamp options, off by default. Rework tcp_enqueue() to

View File

@ -150,7 +150,9 @@ static const int err_to_errno_table[] = {
err_to_errno_table[-(err)] : EIO)
#ifdef ERRNO
#ifndef set_errno
#define set_errno(err) errno = (err)
#endif
#else
#define set_errno(err)
#endif