projects
/
project
/
make_ext4fs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove references to O_BINARY
[project/make_ext4fs.git]
/
libsparse
/
output_file.c
diff --git
a/libsparse/output_file.c
b/libsparse/output_file.c
index
cd30800
..
ba92563
100644
(file)
--- a/
libsparse/output_file.c
+++ b/
libsparse/output_file.c
@@
-24,6
+24,7
@@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@
-34,13
+35,6
@@
#include "sparse_crc32.h"
#include "sparse_format.h"
#include "sparse_crc32.h"
#include "sparse_format.h"
-#ifndef USE_MINGW
-#include <sys/mman.h>
-#define O_BINARY 0
-#else
-#define ftruncate64 ftruncate
-#endif
-
#if defined(__APPLE__) && defined(__MACH__)
#define lseek64 lseek
#define ftruncate64 ftruncate
#if defined(__APPLE__) && defined(__MACH__)
#define lseek64 lseek
#define ftruncate64 ftruncate
@@
-748,7
+742,7
@@
int write_file_chunk(struct output_file *out, unsigned int len,
{
int ret;
{
int ret;
- int file_fd = open(file, O_RDONLY
| O_BINARY
);
+ int file_fd = open(file, O_RDONLY);
if (file_fd < 0) {
return -errno;
}
if (file_fd < 0) {
return -errno;
}