summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-04-07 02:37:15 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-04-07 16:01:05 +0200
commit812fce9dcfaf26f62b8bfb83ee51b43f83c5291f (patch)
treeca99d375f0f164b099c460095d50f727a41529ce /CMake
parent694eab18bcaa83b5e70f7e2e6b5b7418d953ca3b (diff)
downloadcurl-812fce9dcfaf26f62b8bfb83ee51b43f83c5291f.tar.gz
configure: remove use of RETSIGTYPE
This was previously defined by the obsolete AC_TYPE_SIGNAL macro, which was removed in 2682e5f5. The deprecation text says > Your code may safely assume C89 semantics that RETSIGTYPE is void. So, remove it and just use void instead. Closes #6861
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CurlTests.c20
-rw-r--r--CMake/Platforms/WindowsCache.cmake1
2 files changed, 1 insertions, 20 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c
index 949910d5e..2fcce1bb3 100644
--- a/CMake/CurlTests.c
+++ b/CMake/CurlTests.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -214,24 +214,6 @@ if (sizeof (bool *) )
#include <float.h>
int main() { return 0; }
#endif
-#ifdef RETSIGTYPE_TEST
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-# undef signal
-#endif
-#ifdef __cplusplus
-extern "C" void (*signal (int, void (*)(int)))(int);
-#else
-void (*signal ()) ();
-#endif
-
-int
-main ()
-{
- return 0;
-}
-#endif
#ifdef HAVE_INET_NTOA_R_DECL
#include <arpa/inet.h>
diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake
index e18399917..33c735a22 100644
--- a/CMake/Platforms/WindowsCache.cmake
+++ b/CMake/Platforms/WindowsCache.cmake
@@ -132,7 +132,6 @@ if(NOT UNIX)
set(HAVE_GETADDRINFO 0)
endif()
set(STDC_HEADERS 1)
- set(RETSIGTYPE_TEST 1)
set(HAVE_SIGACTION 0)
set(HAVE_MACRO_SIGSETJMP 0)