Mercurial > gftp.yaz
diff lib/gftp.h @ 435:89097f3a4906
2004-3-18 Brian Masney <masneyb@gftp.org>
* lib/gftp.h configure.in - #define _LARGEFILE_SOURCE if sizeof(off_t)
is greater than 4 and _LARGEFILE_SOURCE is not defined.
_LARGEFILE_SOURCE does not get defined under *BSD
author | masneyb |
---|---|
date | Thu, 18 Mar 2004 14:38:07 +0000 |
parents | 1d45758e5cf5 |
children | ef3ea9f70d8a |
line wrap: on
line diff
--- a/lib/gftp.h Thu Mar 18 12:01:57 2004 +0000 +++ b/lib/gftp.h Thu Mar 18 14:38:07 2004 +0000 @@ -26,10 +26,8 @@ #include "config.h" #endif -/* FreeBSD and OpenBSD both include 64bit off_t but _LARGEFILE_SOURCE does not - get defined. */ -#if defined (_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS > 32 && \ - !defined (_LARGEFILE_SOURCE) +/* *BSD include 64bit off_t but _LARGEFILE_SOURCE is not defined. */ +#if defined (SIZEOF_OFF_T) && SIZEOF_OFF_T > 4 && !defined (_LARGEFILE_SOURCE) #define _LARGEFILE_SOURCE 1 #endif