summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-28 19:57:16 +0100
committerSlávek Banko <[email protected]>2019-01-28 20:53:20 +0100
commit1434d41c7517c973992a815df4372bae4e56129f (patch)
tree66f1f890c0daaaa2d3fb821e8f58f80c7d76f72f
parent1eba0b939eca5207834a9643bc2f0a5cca021195 (diff)
downloadtdelibs-1434d41c7517c973992a815df4372bae4e56129f.tar.gz
tdelibs-1434d41c7517c973992a815df4372bae4e56129f.zip
Use common test for large files support.
Drop hardcoded definition -D_LARGEFILE64_SOURCE=1. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit ebf0115af1c52612e02fd8908b4240501bd34c60)
-rw-r--r--CMakeLists.txt2
-rw-r--r--tdeio/CMakeLists.txt4
-rw-r--r--tdeio/misc/CMakeLists.txt4
-rw-r--r--tdeioslave/file/CMakeLists.txt4
4 files changed, 2 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 335d2c321..9bd607d1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -157,6 +157,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/tdeio/CMakeLists.txt b/tdeio/CMakeLists.txt
index 0762a056f..c59b8a39d 100644
--- a/tdeio/CMakeLists.txt
+++ b/tdeio/CMakeLists.txt
@@ -9,10 +9,6 @@
#
#################################################
-add_definitions(
- -D_LARGEFILE64_SOURCE=1
-)
-
add_subdirectory( kssl )
add_subdirectory( tdeio )
add_subdirectory( bookmarks )
diff --git a/tdeio/misc/CMakeLists.txt b/tdeio/misc/CMakeLists.txt
index 64004dbcc..fc145ee87 100644
--- a/tdeio/misc/CMakeLists.txt
+++ b/tdeio/misc/CMakeLists.txt
@@ -17,10 +17,6 @@ add_subdirectory( tdefile )
add_subdirectory( tdewalletd )
add_subdirectory( tdentlm )
-add_definitions(
- -D_LARGEFILE64_SOURCE
-)
-
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
diff --git a/tdeioslave/file/CMakeLists.txt b/tdeioslave/file/CMakeLists.txt
index 287e1ebe2..b9e4904b2 100644
--- a/tdeioslave/file/CMakeLists.txt
+++ b/tdeioslave/file/CMakeLists.txt
@@ -9,10 +9,6 @@
#
#################################################
-add_definitions(
- -D_LARGEFILE64_SOURCE
-)
-
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}