[PATCH] mkstemp: open file with O_LARGEFILE

Enrico Scholz <[email protected]> Sat, 12 Mar 2011 23:05:08 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <1299967508-4446-1-git-send-email-enrico.scholz@informatik.tu-chemnitz.de>
File descriptor is returned to application which might apply 64 bit
operations on it. These operations will fail when O_LARGEFILE was not
set.

Signed-off-by: Enrico Scholz <[email protected]>
---
 libcruft/mkstemp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libcruft/mkstemp.c b/libcruft/mkstemp.c
index 7dc19d4..226dec4 100644
--- a/libcruft/mkstemp.c
+++ b/libcruft/mkstemp.c
@@ -1,3 +1,4 @@
+#define _FILE_OFFSET_BITS 64
 #include <unistd.h>
 #include <fcntl.h>
 #include <string.h>
-- 
1.7.4