Skip to content

Commit

Permalink
lib: remove TIME_WITH_SYS_TIME
Browse files Browse the repository at this point in the history
It is not used in any code anywhere.

Ref: #11964
Closes #11975
  • Loading branch information
bagder committed Sep 28, 2023
1 parent f11a5d2 commit db07376
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 42 deletions.
17 changes: 0 additions & 17 deletions CMake/CurlTests.c
Expand Up @@ -21,23 +21,6 @@
* 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

Expand Down
1 change: 0 additions & 1 deletion CMake/OtherTests.cmake
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion CMake/Platforms/WindowsCache.cmake
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/config-amigaos.h
Expand Up @@ -92,7 +92,6 @@
#endif

#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1

#define in_addr_t int

Expand Down
1 change: 0 additions & 1 deletion lib/config-dos.h
Expand Up @@ -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() */

Expand Down
3 changes: 0 additions & 3 deletions lib/config-mac.h
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lib/config-os400.h
Expand Up @@ -247,9 +247,6 @@
/* 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
Expand Down
2 changes: 0 additions & 2 deletions lib/config-plan9.h
Expand Up @@ -138,8 +138,6 @@

#define HAVE_POSIX_STRERROR_R 1
#define HAVE_STRERROR_R 1

#define TIME_WITH_SYS_TIME 1
#define USE_MANUAL 1

#define __attribute__(x)
Expand Down
3 changes: 0 additions & 3 deletions lib/config-riscos.h
Expand Up @@ -213,9 +213,6 @@
/* 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

Expand Down
3 changes: 0 additions & 3 deletions lib/config-win32.h
Expand Up @@ -133,9 +133,6 @@
/* 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
Expand Down
3 changes: 0 additions & 3 deletions lib/config-win32ce.h
Expand Up @@ -101,9 +101,6 @@
/* 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 */
/* ---------------------------------------------------------------- */
Expand Down
3 changes: 0 additions & 3 deletions lib/curl_config.h.cmake
Expand Up @@ -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

Expand Down

0 comments on commit db07376

Please sign in to comment.