Mercurial > gftp.yaz
changeset 434:f2e7b8218558
2004-3-18 Brian Masney <masneyb@gftp.org>
* lib/local.c (local_{get,put}_file) - compiling fix for FreeBSD.
_LARGEFILE_SOURCE is defined, but O_LARGEFILE is not defined
author | masneyb |
---|---|
date | Thu, 18 Mar 2004 12:01:57 +0000 |
parents | 77fffba5e170 |
children | 89097f3a4906 |
files | ChangeLog lib/local.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Mar 17 20:42:53 2004 +0000 +++ b/ChangeLog Thu Mar 18 12:01:57 2004 +0000 @@ -1,3 +1,7 @@ +2004-3-18 Brian Masney <masneyb@gftp.org> + * lib/local.c (local_{get,put}_file) - compiling fix for FreeBSD. + _LARGEFILE_SOURCE is defined, but O_LARGEFILE is not defined + 2004-3-17 Brian Masney <masneyb@gftp.org> * lib/options.h src/gtk/transfer.c - added start file transfers option @@ -2318,7 +2322,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.240 2004/03/17 20:42:49 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.241 2004/03/18 12:01:56 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/lib/local.c Wed Mar 17 20:42:53 2004 +0000 +++ b/lib/local.c Thu Mar 18 12:01:57 2004 +0000 @@ -116,7 +116,7 @@ if (fd <= 0) { flags = O_RDONLY; -#if defined (_LARGEFILE_SOURCE) +#if defined (_LARGEFILE_SOURCE) && defined (O_LARGEFILE) flags |= O_LARGEFILE; #endif @@ -163,7 +163,7 @@ flags = O_WRONLY | O_CREAT; if (startsize > 0) flags |= O_APPEND; -#if defined (_LARGEFILE_SOURCE) +#if defined (_LARGEFILE_SOURCE) && defined (O_LARGEFILE) flags |= O_LARGEFILE; #endif