mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 13:05:44 +00:00
Define O_BINARY to 0 if it is not defined (all hosts, which don't define it, don't need it).
Update the .diff file as well. svn path=/trunk/; revision=31871
This commit is contained in:
parent
83ea0639c1
commit
b93ff8eedd
2 changed files with 26 additions and 2 deletions
|
@ -106,6 +106,19 @@ Index: widltypes.h
|
|||
#include <stdarg.h>
|
||||
#include "guiddef.h"
|
||||
#include "wine/rpcfc.h"
|
||||
@@ -31,8 +38,10 @@
|
||||
typedef GUID UUID;
|
||||
#endif
|
||||
|
||||
-#define TRUE 1
|
||||
-#define FALSE 0
|
||||
+// All hosts, which don't define O_BINARY, don't need it :-)
|
||||
+#ifndef O_BINARY
|
||||
+#define O_BINARY 0
|
||||
+#endif
|
||||
|
||||
typedef struct _attr_t attr_t;
|
||||
typedef struct _expr_t expr_t;
|
||||
Index: write_msft.c
|
||||
===================================================================
|
||||
--- write_msft.c (revision 31863)
|
||||
|
@ -123,3 +136,12 @@ Index: write_msft.c
|
|||
|
||||
#include "widltypes.h"
|
||||
#include "typelib.h"
|
||||
@@ -2415,7 +2413,7 @@
|
||||
|
||||
retval = TYPE_E_IOERROR;
|
||||
|
||||
- fd = creat(typelib->typelib->filename, 0666);
|
||||
+ fd = open(typelib->typelib->filename, O_CREAT | O_RDWR | O_BINARY, 0666);
|
||||
if (fd == -1) return retval;
|
||||
|
||||
filepos = sizeof(MSFT_Header) + sizeof(MSFT_SegDir);
|
||||
|
|
|
@ -38,8 +38,10 @@
|
|||
typedef GUID UUID;
|
||||
#endif
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
// All hosts, which don't define O_BINARY, don't need it :-)
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
typedef struct _attr_t attr_t;
|
||||
typedef struct _expr_t expr_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue