From 34e078aecbdab20c9ad6ead368fa6f216b35aa43 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat, 28 Mar 2009 00:17:58 -0300
Subject: [PATCH 20/32] libjio.h: Fix LFS check

The appropriate check for LFS support is to see if _LARGEFILE_SOURCE is
defined.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 libjio.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libjio.h b/libjio.h
index 39be877..0d61c55 100644
--- a/libjio.h
+++ b/libjio.h
@@ -19,7 +19,7 @@
  * library (which uses LFS) and that's just begging for problems. There should
  * be a portable way for the C library to do some of this for us, but until I
  * find one, this is the best we can do */
-#if (!defined _FILE_OFFSET_BITS) || (_FILE_OFFSET_BITS != 64)
+#ifndef _LARGEFILE_SOURCE
 #error "You must compile your application with Large File Support"
 #endif
 
-- 
1.6.2.rc0.226.gf08f


