Set("CONFIG_INSTALL_API");
# Libucw should support files >2GB and threading
-Set("CONFIG_LARGE_FILES");
+Set("CONFIG_UCW_LARGE_FILES");
Set("CONFIG_UCW_THREADS" => 1);
# Libucw extensions
Set("CONFIG_INSTALL_API");
# Libucw should support files >2GB and threading
-Set("CONFIG_LARGE_FILES");
+Set("CONFIG_UCW_LARGE_FILES");
Set("CONFIG_UCW_THREADS" => 1);
# Libucw extensions
/*
* UCW Library -- Configuration-Dependent Definitions
*
- * (c) 1997--2009 Martin Mares <mj@ucw.cz>
+ * (c) 1997--2012 Martin Mares <mj@ucw.cz>
* (c) 2006 Robert Spalek <robert@ucw.cz>
*
* This software may be freely distributed and used according to the terms
typedef u32 ucw_time_t; /** Seconds since UNIX epoch **/
typedef s64 timestamp_t; /** Milliseconds since UNIX epoch **/
-#ifdef CONFIG_LARGE_FILES
-typedef s64 ucw_off_t; /** File position (either 32- or 64-bit, depending on `CONFIG_LARGE_FILES`). **/
+#ifdef CONFIG_UCW_LARGE_FILES
+typedef s64 ucw_off_t; /** File position (either 32- or 64-bit, depending on `CONFIG_UCW_LARGE_FILES`). **/
#else
typedef s32 ucw_off_t;
#endif
UnSet("CONFIG_EXACT_CPU");
# Support files >2GB
-Set("CONFIG_LARGE_FILES");
+Set("CONFIG_UCW_LARGE_FILES");
# Use shared libraries
UnSet("CONFIG_SHARED");
#include <fcntl.h>
#include <unistd.h>
-#ifdef CONFIG_LFS
+#ifdef CONFIG_UCW_LARGE_FILES
#define ucw_open open64
#define ucw_seek lseek64
#define ucw_fstat fstat64
typedef struct stat64 ucw_stat_t;
-#else /* !CONFIG_LFS */
+#else /* !CONFIG_UCW_LARGE_FILES */
#define ucw_open open
#define ucw_seek(f,o,w) lseek(f,o,w)
#define ucw_fstat fstat
typedef struct stat ucw_stat_t;
-#endif /* !CONFIG_LFS */
+#endif /* !CONFIG_UCW_LARGE_FILES */
#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0)
#define ucw_fdatasync fdatasync
return $p;
});
-if (IsSet("CONFIG_LARGE_FILES") && IsSet("CONFIG_LINUX")) {
- # Use 64-bit versions of file functions
- Set("CONFIG_LFS");
-}
-
# Decide how will ucw/partmap.c work
Set("CONFIG_UCW_PARTMAP_IS_MMAP") if IsSet("CPU_64BIT_POINTERS");