From c43ecb347b50170c0ee614512eb424dcce719c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 28 Jan 2019 19:57:16 +0100 Subject: [PATCH] Use common test for large files support. Drop hardcoded definition -D_LARGEFILE64_SOURCE=1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit ebf0115af1c52612e02fd8908b4240501bd34c60) --- CMakeLists.txt | 2 ++ kio/CMakeLists.txt | 4 ---- kio/misc/CMakeLists.txt | 4 ---- kioslave/file/CMakeLists.txt | 4 ---- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54e080d5f..5e1fbd83d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,8 @@ endif( NO_BUILTIN ) include(TestBigEndian) test_big_endian(WORDS_BIGENDIAN) +tde_setup_largefiles( ) + tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl ) check_include_file( "ltdl.h" HAVE_LTDL_H ) if( NOT HAVE_LTDL_H ) diff --git a/kio/CMakeLists.txt b/kio/CMakeLists.txt index 2e84efcd8..d4dc7df48 100644 --- a/kio/CMakeLists.txt +++ b/kio/CMakeLists.txt @@ -9,10 +9,6 @@ # ################################################# -add_definitions( - -D_LARGEFILE64_SOURCE=1 -) - add_subdirectory( kssl ) add_subdirectory( kio ) add_subdirectory( bookmarks ) diff --git a/kio/misc/CMakeLists.txt b/kio/misc/CMakeLists.txt index 6cda20bb9..5271069f3 100644 --- a/kio/misc/CMakeLists.txt +++ b/kio/misc/CMakeLists.txt @@ -17,10 +17,6 @@ add_subdirectory( kfile ) add_subdirectory( kwalletd ) add_subdirectory( kntlm ) -add_definitions( - -D_LARGEFILE64_SOURCE -) - include_directories( ${TQT_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} diff --git a/kioslave/file/CMakeLists.txt b/kioslave/file/CMakeLists.txt index fef6c2224..0462811dc 100644 --- a/kioslave/file/CMakeLists.txt +++ b/kioslave/file/CMakeLists.txt @@ -9,10 +9,6 @@ # ################################################# -add_definitions( - -D_LARGEFILE64_SOURCE -) - include_directories( ${TQT_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}