freebsd-ports/editors/libreoffice/files/patch-sal_osl_unx_uunxapi.cxx

25 lines
624 B
C++

--- sal/osl/unx/uunxapi.cxx.orig 2020-11-22 14:05:28 UTC
+++ sal/osl/unx/uunxapi.cxx
@@ -595,14 +595,22 @@ std::string UnixErrnoString(int nErrno)
case EBFONT:
return "EBFONT";
#endif
+#ifdef ENOSTR
case ENOSTR:
return "ENOSTR";
+#endif
+#ifdef ENODATA
case ENODATA:
return "ENODATA";
+#endif
+#if defined(ETIME) && (!defined(ETIMEDOUT) || ETIME != ETIMEDOUT)
case ETIME:
return "ETIME";
+#endif
+#ifdef ENOSR
case ENOSR:
return "ENOSR";
+#endif
#ifdef ENONET
case ENONET:
return "ENONET";