1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add EADDRINUSE.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-02-23 14:56:34 +01:00
parent 279f15398f
commit d2b6543558
2 changed files with 2 additions and 0 deletions

View file

@ -48,6 +48,7 @@
#define EPROTONOSUPPORT 56
#define EAFNOSUPPORT 57
#define ENOTSOCK 58
#define EADDRINUSE 59
#define EOPNOTSUPP ENOTSUP

View file

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