summaryrefslogtreecommitdiff
path: root/editors/libreoffice/files/patch-sal_osl_unx_uunxapi.cxx
blob: febc692a41283e01c038c53abfa58274b63f4827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- 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";