Ignore:
Timestamp:
26/09/2008 21:24:11 (4 years ago)
Author:
chris
Message:

Fix compilation of open64() intercept.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/intercept/intercept.h

    r2183 r2299  
    2424        typedef int            (closedir_t)(DIR *dir); 
    2525#if defined __GNUC__ && __GNUC__ >= 2 
    26 #define LINUX_WEIRD_LSTAT 
    27 #define STAT_STRUCT struct stat /* should be stat64 */ 
    28         typedef int            (lstat_t)   (int ver, const char *file_name,  
    29                                             STAT_STRUCT *buf); 
     26        #if _FILE_OFFSET_BITS == 64 
     27                #define DEFINE_ONLY_OPEN64 
     28        #endif 
     29        #define LINUX_WEIRD_LSTAT 
     30        #define STAT_STRUCT struct stat /* should be stat64 */ 
     31                typedef int    (lstat_t)   (int ver, const char *file_name,  
     32                                            STAT_STRUCT *buf); 
    3033#else 
    31 #define STAT_STRUCT struct stat 
    32         typedef int            (lstat_t)   (const char *file_name,  
    33                                             STAT_STRUCT *buf); 
     34        #define STAT_STRUCT struct stat 
     35                typedef int    (lstat_t)   (const char *file_name,  
     36                                            STAT_STRUCT *buf); 
    3437#endif 
    3538} 
Note: See TracChangeset for help on using the changeset viewer.