Mercurial > gftp.yaz
diff lib/gftp.h @ 423:4cee2498761d
2004-3-15 Brian Masney <masneyb@gftp.org>
* lib/gftp.h - if _FILE_OFFSET_BITS is > 32 and _LARGEFILE_SOURCE is
not defined, define it
* lib/protocols.c (gftp_string_{to|from}_utf8 - don't alter the contents of the remote_charsets option. Instead, make a copy of that and alter
that copy
author | masneyb |
---|---|
date | Tue, 16 Mar 2004 02:11:56 +0000 |
parents | 38bfc112ab46 |
children | c5d14dca70c3 |
line wrap: on
line diff
--- a/lib/gftp.h Mon Mar 15 18:07:15 2004 +0000 +++ b/lib/gftp.h Tue Mar 16 02:11:56 2004 +0000 @@ -26,6 +26,13 @@ #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) +#define _LARGEFILE_SOURCE 1 +#endif + #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h>