diff --git a/libc/decl/errno_values.h b/libc/decl/errno_values.h index c2ce55f6..abdd7f97 100644 --- a/libc/decl/errno_values.h +++ b/libc/decl/errno_values.h @@ -45,6 +45,7 @@ #define ELOOP 53 #define EMLINK 54 #define ENXIO 55 +#define EPROTONOSUPPORT 56 #define EOPNOTSUPP ENOTSUP diff --git a/libc/strerror.cpp b/libc/strerror.cpp index ac9f7682..13750cbb 100644 --- a/libc/strerror.cpp +++ b/libc/strerror.cpp @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2011, 2012. + Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013. This file is part of the Sortix C Library. @@ -74,6 +74,7 @@ extern "C" const char* sortix_strerror(int errnum) case ELOOP: return "Too many levels of symbolic links"; case EMLINK: return "Too many links"; case ENXIO: return "No such device or address"; + case EPROTONOSUPPORT: return "Protocol not supported"; default: return "Unknown error condition"; } }