No need to define ETIME
commit1590e2c359fd3b506b8721d99a0054a0bd4dd200
authorStephan Bergmann <stephan.bergmann@allotropia.de>
Tue, 26 Mar 2024 08:37:43 +0000 (26 09:37 +0100)
committerStephan Bergmann <stephan.bergmann@allotropia.de>
Tue, 26 Mar 2024 13:24:06 +0000 (26 14:24 +0100)
tree8914c980924d9e25c083f175a3a35a5350907ca7
parent66be0576a6202354bd5dce289eb823256cc0a324
No need to define ETIME

(which is an obsolescent XSI-STREAMS Posix extension).  It's only use is in the
big switch in UnixErrnoString in sal/osl/unx/uunxapi.cxx, so if any platform
should actually lack it, we should rather #ifdef its use there than introduce it
here.

(This started to cause

> sal/osl/unx/system.hxx:190:12: error: macro 'ETIME' has been marked as deprecated: ETIME is deprecated in ISO C++ [-Werror,-Wdeprecated-pragma]
>   190 | #   ifndef ETIME
>       |            ^
> ~/llvm/inst/bin/../include/c++/v1/cerrno:51:67: note: macro marked 'deprecated' here
>    51 | #  pragma clang deprecated(ETIME, "ETIME is deprecated in ISO C++")
>       |                                                                   ^

with recent LLVM 19 trunk on macOS now.)

Change-Id: I01a586f08a4d9e4643c797fce5ce53c5f3ce8b81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165303
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
sal/osl/unx/system.hxx