Browse Source

Use common test for large files support.

Drop hardcoded definition -D_LARGEFILE64_SOURCE=1.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/18/head
Slávek Banko 9 months ago
parent
commit
ebf0115af1
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
4 changed files with 2 additions and 12 deletions
  1. 2
    0
      CMakeLists.txt
  2. 0
    4
      tdeio/CMakeLists.txt
  3. 0
    4
      tdeio/misc/CMakeLists.txt
  4. 0
    4
      tdeioslave/file/CMakeLists.txt

+ 2
- 0
CMakeLists.txt View File

@@ -161,6 +161,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 )

+ 0
- 4
tdeio/CMakeLists.txt View File

@@ -9,10 +9,6 @@
#
#################################################

add_definitions(
-D_LARGEFILE64_SOURCE=1
)

add_subdirectory( kssl )
add_subdirectory( tdeio )
add_subdirectory( bookmarks )

+ 0
- 4
tdeio/misc/CMakeLists.txt View File

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

+ 0
- 4
tdeioslave/file/CMakeLists.txt View File

@@ -9,10 +9,6 @@
#
#################################################

add_definitions(
-D_LARGEFILE64_SOURCE
)

include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}

Loading…
Cancel
Save