diff --git a/libc/decl/errno_values.h b/libc/decl/errno_values.h index abdd7f97..e6c73910 100644 --- a/libc/decl/errno_values.h +++ b/libc/decl/errno_values.h @@ -46,6 +46,7 @@ #define EMLINK 54 #define ENXIO 55 #define EPROTONOSUPPORT 56 +#define EAFNOSUPPORT 57 #define EOPNOTSUPP ENOTSUP diff --git a/libc/strerror.cpp b/libc/strerror.cpp index 13750cbb..f99f4cc3 100644 --- a/libc/strerror.cpp +++ b/libc/strerror.cpp @@ -75,6 +75,7 @@ extern "C" const char* sortix_strerror(int errnum) case EMLINK: return "Too many links"; case ENXIO: return "No such device or address"; case EPROTONOSUPPORT: return "Protocol not supported"; + case EAFNOSUPPORT: return "Address family not supported"; default: return "Unknown error condition"; } }