Mercurial > gftp.yaz
changeset 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 | f2e7b8218558 |
children | 7f023f77bd60 |
files | ChangeLog configure.in lib/gftp.h |
diffstat | 3 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Mar 18 12:01:57 2004 +0000 +++ b/ChangeLog Thu Mar 18 14:38:07 2004 +0000 @@ -1,4 +1,8 @@ 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 + * lib/local.c (local_{get,put}_file) - compiling fix for FreeBSD. _LARGEFILE_SOURCE is defined, but O_LARGEFILE is not defined @@ -2322,7 +2326,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.241 2004/03/18 12:01:56 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.242 2004/03/18 14:38:06 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/configure.in Thu Mar 18 12:01:57 2004 +0000 +++ b/configure.in Thu Mar 18 14:38:07 2004 +0000 @@ -61,6 +61,7 @@ AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM +AC_CHECK_SIZEOF(off_t) AC_FUNC_ALLOCA AC_PROG_GCC_TRADITIONAL
--- 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