ntdll: Only use ETIME on systems defining it.
Gerald Pfeifer
gerald at pfeifer.com
Sun Oct 9 16:57:18 CDT 2011
ETIME is Linux-specific. Specifically I am not aware of any version
of FreeBSD featuring it, and presumably other operating systems are
affected, too.
Gerald
---
dlls/ntdll/file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 85fc858..e16beca 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -347,7 +347,9 @@ NTSTATUS FILE_GetNtStatus(void)
case ECONNRESET:return STATUS_PIPE_DISCONNECTED;
case EFAULT: return STATUS_ACCESS_VIOLATION;
case ESPIPE: return STATUS_ILLEGAL_FUNCTION;
+#ifdef ETIME
case ETIME: return STATUS_IO_TIMEOUT;
+#endif
case ENOEXEC: /* ?? */
case EEXIST: /* ?? */
default:
--
1.7.6
More information about the wine-patches
mailing list