]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: remove TIME_WITH_SYS_TIME
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Sep 2023 11:57:07 +0000 (13:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Sep 2023 20:58:36 +0000 (22:58 +0200)
It is not used in any code anywhere.

Ref: #11964
Closes #11975

13 files changed:
CMake/CurlTests.c
CMake/OtherTests.cmake
CMake/Platforms/WindowsCache.cmake
CMakeLists.txt
lib/config-amigaos.h
lib/config-dos.h
lib/config-mac.h
lib/config-os400.h
lib/config-plan9.h
lib/config-riscos.h
lib/config-win32.h
lib/config-win32ce.h
lib/curl_config.h.cmake

index 38be522d5ed3927553c043354fc1ae0adcd25cd6..ea80ec89ab9fd0e2836eb7aece427a61fe1866ee 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#ifdef TIME_WITH_SYS_TIME
-/* Time with sys/time test */
-
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
-  ;
-  return 0;
-}
-
-#endif
 
 #ifdef HAVE_FCNTL_O_NONBLOCK
 
index b1dd2574c4eff28148af32bdff5b96b4ba598992..78d39404556ba656a940c0b9eb63f025c75eccdc 100644 (file)
@@ -57,7 +57,6 @@ check_c_source_compiles("${_source_epilogue}
 
 if(NOT HAVE_WINDOWS_H)
   add_header_include(HAVE_SYS_TIME_H "sys/time.h")
-  add_header_include(TIME_WITH_SYS_TIME "time.h")
 endif()
 check_c_source_compiles("${_source_epilogue}
 #include <time.h>
index edf60588552efad111c13a0ee0a19fc8271220fa..6c79e1854ef492b055b97242de91697ca3cc0e7e 100644 (file)
@@ -112,7 +112,6 @@ if(NOT UNIX)
     set(HAVE_GETHOSTBYNAME_R_6 0)
     set(HAVE_GETHOSTBYNAME_R_6_REENTRANT 0)
 
-    set(TIME_WITH_SYS_TIME 0)
     set(HAVE_O_NONBLOCK 0)
     set(HAVE_IN_ADDR_T 0)
     set(STDC_HEADERS 1)
index 2ba52a040ea097459a3fb8150234215a88db92e1..6ce5f3b1e3ff6690a5a096547c5d91352668d4d3 100644 (file)
@@ -1207,7 +1207,6 @@ foreach(CURL_TEST
     HAVE_IOCTL_FIONBIO
     HAVE_IOCTL_SIOCGIFADDR
     HAVE_SETSOCKOPT_SO_NONBLOCK
-    TIME_WITH_SYS_TIME
     HAVE_O_NONBLOCK
     HAVE_GETHOSTBYNAME_R_3
     HAVE_GETHOSTBYNAME_R_5
index f5d020253d4bb9d2527e08ddaf9fdcf3e3bbadbf..8f4d3e6c31ae649999df292acf8aefc35c540318 100644 (file)
@@ -92,7 +92,6 @@
 #endif
 
 #define STDC_HEADERS 1
-#define TIME_WITH_SYS_TIME 1
 
 #define in_addr_t int
 
index 5c646bb5ed35d36135ba3082fe5a5fc398b10950..550c410a12968d8d713e1e14c8cd1b23f1007250 100644 (file)
@@ -82,7 +82,6 @@
 #define SIZEOF_SIZE_T          4
 #define SIZEOF_CURL_OFF_T      8
 #define STDC_HEADERS           1
-#define TIME_WITH_SYS_TIME     1
 
 /* Qualifiers for send() and recv() */
 
index 5429fbee48b52a97b4cf9b3538312f66663c55d7..c29888f8f7eea2a497713289a49fdadb8d83ed0c 100644 (file)
@@ -56,9 +56,6 @@
 #define HAVE_SYS_TIME_H         1
 #define HAVE_SYS_UTIME_H        1
 #define HAVE_SYS_IOCTL_H        1
-
-#define TIME_WITH_SYS_TIME      1
-
 #define HAVE_ALARM              1
 #define HAVE_FTRUNCATE          1
 #define HAVE_UTIME              1
index 04f7752936ca6b08d6813342d1c0ed318aee8654..e9a62886306be7dc28bba6e8381dbfd01d46f31c 100644 (file)
 /* Define if you have the ANSI C header files. */
 #define STDC_HEADERS
 
-/* Define if you can safely include both <sys/time.h> and <time.h>. */
-#define TIME_WITH_SYS_TIME
-
 /* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
    MSH3) */
 #undef ENABLE_QUIC
index 60e3402eb58c354cf9ad6ee24cb0562bf55a08b1..fa4be8e6d2138b0f8454b4765733ae64919955af 100644 (file)
 
 #define HAVE_POSIX_STRERROR_R 1
 #define HAVE_STRERROR_R 1
-
-#define TIME_WITH_SYS_TIME 1
 #define USE_MANUAL 1
 
 #define __attribute__(x)
index e3834b66d305d0686ad458818865f05e13102f8c..52c279f5bf322b03fecad33efe43be65a161fc44 100644 (file)
 /* Define if you have the ANSI C header files. */
 #undef STDC_HEADERS
 
-/* Define if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
-
 /* Version number of package */
 #undef VERSION
 
index 5534bb8fc020cac1fd19d4b396f48e23fb5de3c6..e55ef2fd20beb5c88e7e80d5ac0dacb39c382b5b 100644 (file)
 /* Define if you have the ANSI C header files. */
 #define STDC_HEADERS 1
 
-/* Define if you can safely include both <sys/time.h> and <time.h>. */
-/* #define TIME_WITH_SYS_TIME 1 */
-
 /* Define to 1 if bool is an available type. */
 #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
 #define HAVE_BOOL_T 1
index 1a34239006c627b1c5affc49938f795752adf911..cc3833d017912083eb0db0e5ac04d8629692d297 100644 (file)
 /* Define if you have the ANSI C header files.  */
 #define STDC_HEADERS 1
 
-/* Define if you can safely include both <sys/time.h> and <time.h>.  */
-/* #define TIME_WITH_SYS_TIME 1 */
-
 /* ---------------------------------------------------------------- */
 /*                             FUNCTIONS                            */
 /* ---------------------------------------------------------------- */
index 528cad4eff8537f68ea5763cb6e711586d51023a..a503423d225faa79533fdec3a3aee8b6ced0a2b1 100644 (file)
@@ -655,9 +655,6 @@ ${SIZEOF_TIME_T_CODE}
 /* Define to 1 if you have the ANSI C header files. */
 #cmakedefine STDC_HEADERS 1
 
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#cmakedefine TIME_WITH_SYS_TIME 1
-
 /* Define if you want to enable c-ares support */
 #cmakedefine USE_ARES 1