ossp-pkg/l2/l2_ch_file.c 1.33 -> 1.34
--- l2_ch_file.c 2005/10/03 08:08:11 1.33
+++ l2_ch_file.c 2007/03/02 15:13:28 1.34
@@ -60,6 +60,14 @@
struct timeval tv;
struct stat st;
+#ifdef O_LARGEFILE
+ /* Support for 1996-03-20 addition to Single UNIX Specification for
+ * systems that still require the Transitional Extensions to System
+ * Interfaces to support arbitrary file sizes (LFS >2GiB)
+ */
+ mode |= O_LARGEFILE;
+#endif
+
/* open channel file */
mask = umask(0);
cfg->fd = open(cfg->path, mode, cfg->perm);
|
|