summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-02-19 18:28:40 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-02-19 18:28:53 +0100
commit578a0c812f8a8b22b37f275354d722bc652e722c (patch)
tree4c77c5339eddebfc355082ecaa6ffdab554e482f
parent41c3cf15cc9ad39e18210c51144cef0027d99bc8 (diff)
downloadkasablanca-578a0c812f8a8b22b37f275354d722bc652e722c.tar.gz
kasablanca-578a0c812f8a8b22b37f275354d722bc652e722c.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> (cherry picked from commit 28e2c3f3522402adc95329a71c3ce4c557342059)
-rw-r--r--src/ftplib.cpp9
-rw-r--r--src/ftpsession.cpp5
-rw-r--r--src/ftpthread.cpp5
-rw-r--r--src/kbdir.cpp5
-rw-r--r--src/kbfile.cpp5
-rw-r--r--src/kbfileinfo.cpp5
-rw-r--r--src/kbitem.cpp5
-rw-r--r--src/kbtransferfile.cpp5
8 files changed, 2 insertions, 42 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)
{
diff --git a/src/ftpsession.cpp b/src/ftpsession.cpp
index 5c62f3a..8de2e86 100644
--- a/src/ftpsession.cpp
+++ b/src/ftpsession.cpp
@@ -10,11 +10,6 @@
//
//
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tdelocale.h>
#include <tdeglobal.h>
#include <tdemessagebox.h>
diff --git a/src/ftpthread.cpp b/src/ftpthread.cpp
index c51ae20..3634bbb 100644
--- a/src/ftpthread.cpp
+++ b/src/ftpthread.cpp
@@ -18,11 +18,6 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <kstandarddirs.h>
#include <tqapplication.h>
diff --git a/src/kbdir.cpp b/src/kbdir.cpp
index f220d14..1d33c16 100644
--- a/src/kbdir.cpp
+++ b/src/kbdir.cpp
@@ -15,11 +15,6 @@
* *
***************************************************************************/
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tdeglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"
diff --git a/src/kbfile.cpp b/src/kbfile.cpp
index bb12819..0ab1fca 100644
--- a/src/kbfile.cpp
+++ b/src/kbfile.cpp
@@ -15,11 +15,6 @@
* *
***************************************************************************/
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tdeglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"
diff --git a/src/kbfileinfo.cpp b/src/kbfileinfo.cpp
index 60e68d0..c67a510 100644
--- a/src/kbfileinfo.cpp
+++ b/src/kbfileinfo.cpp
@@ -10,11 +10,6 @@
//
//
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tqregexp.h>
#include <tqdir.h>
diff --git a/src/kbitem.cpp b/src/kbitem.cpp
index 7eee111..cbd9fa5 100644
--- a/src/kbitem.cpp
+++ b/src/kbitem.cpp
@@ -10,11 +10,6 @@
//
//
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tqdatetime.h>
#include "kbfileinfo.h"
diff --git a/src/kbtransferfile.cpp b/src/kbtransferfile.cpp
index 6ec142a..b8e7544 100644
--- a/src/kbtransferfile.cpp
+++ b/src/kbtransferfile.cpp
@@ -18,11 +18,6 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-// enable > 2gb support (LFS)
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
#include <tqpainter.h>
#include <tqcolor.h>