Add ETIMEDOUT.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-03-08 23:49:41 +01:00
parent d2b6543558
commit 633f4bb55c
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@
#define EAFNOSUPPORT 57
#define ENOTSOCK 58
#define EADDRINUSE 59
#define ETIMEDOUT 60
#define EOPNOTSUPP ENOTSUP

View File

@ -78,6 +78,7 @@ extern "C" const char* sortix_strerror(int errnum)
case EAFNOSUPPORT: return "Address family not supported";
case ENOTSOCK: return "Not a socket";
case EADDRINUSE: return "Address already in use";
case ETIMEDOUT: return "Connection timed out";
default: return "Unknown error condition";
}
}