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>
pull/4/head
Slávek Banko 5 years ago
parent a557c5e1ba
commit 28e2c3f352
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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)
{

@ -10,11 +10,6 @@
//
//
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <tdelocale.h>
#include <tdeglobal.h>
#include <tdemessagebox.h>

@ -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>

@ -15,11 +15,6 @@
* *
***************************************************************************/
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <tdeglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"

@ -15,11 +15,6 @@
* *
***************************************************************************/
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <tdeglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"

@ -10,11 +10,6 @@
//
//
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <tqregexp.h>
#include <tqdir.h>

@ -10,11 +10,6 @@
//
//
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <tqdatetime.h>
#include "kbfileinfo.h"

@ -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>

Loading…
Cancel
Save