git » libjio » commit 34e078a

libjio.h: Fix LFS check

author Alberto Bertogli
2009-03-28 03:17:58 UTC
committer Alberto Bertogli
2009-03-28 03:17:58 UTC
parent 3e212f5ec9c09e2959eb7c29701ce3c9193161bc

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 +1 -1

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