PATCH: No EOVERFLOW on OBsd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>From Bug 1923.

Ciao, Marcus

Changelog:
	Wim Lewis <wiml@xxxxxxxx> 
	EOVERFLOW does not exist on OpenBSD.

Index: server/file.c
===================================================================
RCS file: /home/wine/wine/server/file.c,v
retrieving revision 1.73
diff -u -r1.73 file.c
--- server/file.c	10 Dec 2003 02:14:23 -0000	1.73
+++ server/file.c	2 Jan 2004 08:34:10 -0000
@@ -462,7 +462,9 @@
     case ESPIPE:    set_win32_error( ERROR_SEEK ); break;
     case ENOTEMPTY: set_error( STATUS_DIRECTORY_NOT_EMPTY ); break;
     case EIO:       set_error( STATUS_ACCESS_VIOLATION ); break;
+#if defined(EOVERFLOW)
     case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break;
+#endif
     default:        perror("file_set_error"); set_win32_error( ERROR_UNKNOWN ); break;
     }
 }
Index: server/fd.c
===================================================================
RCS file: /home/wine/wine/server/fd.c,v
retrieving revision 1.14
diff -u -r1.14 fd.c
--- server/fd.c	1 Dec 2003 23:01:12 -0000	1.14
+++ server/fd.c	2 Jan 2004 08:34:11 -0000
@@ -501,7 +501,9 @@
             if (fl.l_type == F_WRLCK) return 1;
             set_error( STATUS_ACCESS_DENIED );
             return 0;
+#if defined(EOVERFLOW)
         case EOVERFLOW:
+#endif
         case EINVAL:
             /* this can happen if off_t is 64-bit but the kernel only supports 32-bit */
             /* in that case we shrink the limit and retry */


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux