/ Check-in [4043d879]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4043d879795bfad55af35e9cb48e0a42eb4087ae
User & Date: drh 2014-02-07 19:33:31
Context
2014-02-07
22:21
Add opcodes OP_InitCoroutine and OP_EndCoroutine. Use these to remove the need for separate boolean registers to record when a co-routine has finished. check-in: 5a88b6a7 user: drh tags: trunk
19:33
Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE. check-in: 4043d879 user: drh tags: trunk
19:26
In the TCL bindings, make sure Tcl_AppendResult() is always terminated by "(char*)0" and not just "0". check-in: ea4d23d1 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

    79     79   #  if defined(__RTP__) || defined(_WRS_KERNEL)
    80     80   #    define OS_VXWORKS 1
    81     81   #  else
    82     82   #    define OS_VXWORKS 0
    83     83   #  endif
    84     84   #endif
    85     85   
    86         -/*
    87         -** These #defines should enable >2GB file support on Posix if the
    88         -** underlying operating system supports it.  If the OS lacks
    89         -** large file support, these should be no-ops.
    90         -**
    91         -** Large file support can be disabled using the -DSQLITE_DISABLE_LFS switch
    92         -** on the compiler command line.  This is necessary if you are compiling
    93         -** on a recent machine (ex: RedHat 7.2) but you want your code to work
    94         -** on an older machine (ex: RedHat 6.0).  If you compile on RedHat 7.2
    95         -** without this option, LFS is enable.  But LFS does not exist in the kernel
    96         -** in RedHat 6.0, so the code won't work.  Hence, for maximum binary
    97         -** portability you should omit LFS.
    98         -**
    99         -** The previous paragraph was written in 2005.  (This paragraph is written
   100         -** on 2008-11-28.) These days, all Linux kernels support large files, so
   101         -** you should probably leave LFS enabled.  But some embedded platforms might
   102         -** lack LFS in which case the SQLITE_DISABLE_LFS macro might still be useful.
   103         -*/
   104         -#ifndef SQLITE_DISABLE_LFS
   105         -# define _LARGE_FILE       1
   106         -# ifndef _FILE_OFFSET_BITS
   107         -#   define _FILE_OFFSET_BITS 64
   108         -# endif
   109         -# define _LARGEFILE_SOURCE 1
   110         -#endif
   111         -
   112     86   /*
   113     87   ** standard include files.
   114     88   */
   115     89   #include <sys/types.h>
   116     90   #include <sys/stat.h>
   117     91   #include <fcntl.h>
   118     92   #include <unistd.h>

Changes to src/sqliteInt.h.

    29     29   ** on the compiler command line.  This is necessary if you are compiling
    30     30   ** on a recent machine (ex: Red Hat 7.2) but you want your code to work
    31     31   ** on an older machine (ex: Red Hat 6.0).  If you compile on Red Hat 7.2
    32     32   ** without this option, LFS is enable.  But LFS does not exist in the kernel
    33     33   ** in Red Hat 6.0, so the code won't work.  Hence, for maximum binary
    34     34   ** portability you should omit LFS.
    35     35   **
           36  +** The previous paragraph was written in 2005.  (This paragraph is written
           37  +** on 2008-11-28.) These days, all Linux kernels support large files, so
           38  +** you should probably leave LFS enabled.  But some embedded platforms might
           39  +** lack LFS in which case the SQLITE_DISABLE_LFS macro might still be useful.
           40  +**
    36     41   ** Similar is true for Mac OS X.  LFS is only supported on Mac OS X 9 and later.
    37     42   */
    38     43   #ifndef SQLITE_DISABLE_LFS
    39     44   # define _LARGE_FILE       1
    40     45   # ifndef _FILE_OFFSET_BITS
    41     46   #   define _FILE_OFFSET_BITS 64
    42     47   # endif