diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-02-19 18:28:40 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-02-19 18:28:40 +0100 |
commit | 28e2c3f3522402adc95329a71c3ce4c557342059 (patch) | |
tree | 740699717e5caa2f55715648349a6ccaae846fb4 /src/ftplib.cpp | |
parent | a557c5e1bad883d9ebf1d7b12d13192cbf716b16 (diff) | |
download | kasablanca-28e2c3f3522402adc95329a71c3ce4c557342059.tar.gz kasablanca-28e2c3f3522402adc95329a71c3ce4c557342059.zip |
Remove LFS definitions from individual files.
LFS support is detected and enabled globally.
Used standard fopen and fseeko functions.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/ftplib.cpp')
-rw-r--r-- | src/ftplib.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ftplib.cpp b/src/ftplib.cpp index 94d5fff..fb53364 100644 --- a/src/ftplib.cpp +++ b/src/ftplib.cpp @@ -40,11 +40,6 @@ /* */ /***************************************************************************/ -// enable > 2gb support (LFS) - -#define _LARGEFILE_SOURCE -#define _LARGEFILE64_SOURCE - #include "ftplib.h" #include <unistd.h> #include <stdio.h> @@ -1140,8 +1135,8 @@ int ftplib::FtpXfer(const char *localfile, const char *path, netbuf *nControl, i if (typ == FTPLIB_FILE_WRITE) { ac[0] = 'r'; ac[1] = '\0'; } if (mode == ftplib::image) ac[1] = 'b'; - local = fopen64(localfile, ac); - if (typ == FTPLIB_FILE_WRITE_APPEND) fseeko64(local,mp_netbuf->offset,SEEK_SET); + local = fopen(localfile, ac); + if (typ == FTPLIB_FILE_WRITE_APPEND) fseeko(local,mp_netbuf->offset,SEEK_SET); if (local == NULL) { |