Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2007-12-29 02:41:03


Author: turkanis
Date: 2007-12-29 02:41:03 EST (Sat, 29 Dec 2007)
New Revision: 42333
URL: http://svn.boost.org/trac/boost/changeset/42333

Log:
rearranged headers; added O_LARGEFILE for glibc with _LARGEFILE64_SOURCE
Text files modified:
   branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp 2007-12-29 02:41:03 EST (Sat, 29 Dec 2007)
@@ -13,6 +13,8 @@
 #define BOOST_IOSTREAMS_SOURCE
 
 #include <cassert>
+#include <cerrno>
+#include <cstdio> // SEEK_SET, etc.
 #include <boost/config.hpp> // BOOST_JOIN
 #include <boost/iostreams/detail/error.hpp>
 #include <boost/iostreams/detail/config/dyn_link.hpp>
@@ -24,9 +26,6 @@
 
     // OS-specific headers for low-level i/o.
 
-#include <cassert>
-#include <cstdio> // SEEK_SET, etc.
-#include <errno.h>
 #include <fcntl.h> // file opening flags.
 #include <sys/stat.h> // file access permissions.
 #ifdef BOOST_IOSTREAMS_WINDOWS
@@ -116,6 +115,9 @@
     }
     if (m & BOOST_IOS::trunc)
         oflag |= O_CREAT;
+ #ifdef _LARGEFILE64_SOURCE
+ oflag |= O_LARGEFILE;
+ #endif
 
         // Calculate pmode argument to open.
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk