PATCH: dlls/msvcrt/file.c and POSIX (retry)
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Wed Sep 26 05:47:54 CDT 2001
I had sent the following fix to Alexandre four resp. two weeks ago, but
didn't get any response.
Is there any specific problem with this fix? (I'm confident that with
this patch we are better off than without.)
Gerald
ChangeLog:
POSIX compliant systems already have W_OK in <unistd.h>.
Index: file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.9
diff -u -3 -p -r1.9 file.c
--- file.c 2001/07/23 18:02:18 1.9
+++ file.c 2001/09/11 14:22:19
@@ -32,8 +32,11 @@ DEFAULT_DEBUG_CHANNEL(msvcrt);
#define MSVCRT_S_IWRITE (_S_IWRITE | (_S_IWRITE >> 3) | (_S_IWRITE >> 6))
#define MSVCRT_S_IEXEC (_S_IEXEC | (_S_IEXEC >> 3) | (_S_IEXEC >> 6))
+/* POSIX compliant systems already have this in <unistd.h>. */
+#ifndef W_OK
/* _access() bit flags FIXME: incomplete */
-#define W_OK 2
+#define W_OK 0x02
+#endif
/* FIXME: Make this dynamic */
More information about the wine-patches
mailing list