summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-10-11 17:43:46 +0000
committerChris Wilson <chris+github@qwirx.com>2008-10-11 17:43:46 +0000
commit19663917c6f8efeac881a744a4448681594bcb92 (patch)
tree88f6531e436973aae2b7547a482f00c06d4bf4ef /lib
parentd32e1f317c46427ddf6671fd157e22d19a414467 (diff)
Fix intercept compile problem on Solaris, and hopefully on other platforms
with large file support.
Diffstat (limited to 'lib')
-rw-r--r--lib/intercept/intercept.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/intercept/intercept.h b/lib/intercept/intercept.h
index 66e8684b..64c42332 100644
--- a/lib/intercept/intercept.h
+++ b/lib/intercept/intercept.h
@@ -22,10 +22,10 @@ extern "C"
typedef struct dirent *(readdir_t) (DIR *dir);
typedef struct dirent *(readdir_t) (DIR *dir);
typedef int (closedir_t)(DIR *dir);
+#if _FILE_OFFSET_BITS == 64
+ #define DEFINE_ONLY_OPEN64
+#endif
#if defined __GNUC__ && __GNUC__ >= 2
- #if _FILE_OFFSET_BITS == 64
- #define DEFINE_ONLY_OPEN64
- #endif
#define LINUX_WEIRD_LSTAT
#define STAT_STRUCT struct stat /* should be stat64 */
typedef int (lstat_t) (int ver, const char *file_name,