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>
Slávek Banko 2 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 )
161 161
 include(TestBigEndian)
162 162
 test_big_endian(WORDS_BIGENDIAN)
163 163
 
164
+tde_setup_largefiles( )
165
+
164 166
 tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl )
165 167
 check_include_file( "ltdl.h" HAVE_LTDL_H )
166 168
 if( NOT HAVE_LTDL_H )

+ 0
- 4
tdeio/CMakeLists.txt View File

@@ -9,10 +9,6 @@
9 9
 #
10 10
 #################################################
11 11
 
12
-add_definitions(
13
-  -D_LARGEFILE64_SOURCE=1
14
-)
15
-
16 12
 add_subdirectory( kssl )
17 13
 add_subdirectory( tdeio )
18 14
 add_subdirectory( bookmarks )

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

@@ -17,10 +17,6 @@ add_subdirectory( tdefile )
17 17
 add_subdirectory( tdewalletd )
18 18
 add_subdirectory( tdentlm )
19 19
 
20
-add_definitions(
21
-  -D_LARGEFILE64_SOURCE
22
-)
23
-
24 20
 include_directories(
25 21
   ${TQT_INCLUDE_DIRS}
26 22
   ${CMAKE_CURRENT_BINARY_DIR}

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

@@ -9,10 +9,6 @@
9 9
 #
10 10
 #################################################
11 11
 
12
-add_definitions(
13
-  -D_LARGEFILE64_SOURCE
14
-)
15
-
16 12
 include_directories(
17 13
   ${TQT_INCLUDE_DIRS}
18 14
   ${CMAKE_CURRENT_BINARY_DIR}

Loading…
Cancel
Save