]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: assume errno.h is always available
authorJay Satiro <raysatiro@yahoo.com>
Sun, 27 Nov 2022 21:12:12 +0000 (16:12 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 7 Dec 2022 19:41:09 +0000 (14:41 -0500)
- Remove errno.h detection from all build configurations.

errno.h is a standard header according to C89.

Closes https://github.com/curl/curl/pull/9986

12 files changed:
CMakeLists.txt
configure.ac
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
lib/curl_setup_once.h

index 9ecc57d11edf27a4e232331084a5e7ce08591e86..b4352075144f43022908f3db9348e506848e5720 100644 (file)
@@ -975,7 +975,6 @@ check_include_file_concat("sys/utime.h"      HAVE_SYS_UTIME_H)
 check_include_file_concat("sys/xattr.h"      HAVE_SYS_XATTR_H)
 check_include_file_concat("arpa/inet.h"      HAVE_ARPA_INET_H)
 check_include_file_concat("arpa/tftp.h"      HAVE_ARPA_TFTP_H)
-check_include_file_concat("errno.h"          HAVE_ERRNO_H)
 check_include_file_concat("fcntl.h"          HAVE_FCNTL_H)
 check_include_file_concat("idn2.h"           HAVE_IDN2_H)
 check_include_file_concat("ifaddrs.h"        HAVE_IFADDRS_H)
index ef607afa9d03b6edcc00dafee9bff0dd07706559..d4fc183ed966f6bf33025417edced72e0b762c2a 100644 (file)
@@ -3334,7 +3334,6 @@ AC_CHECK_HEADERS(
         sys/resource.h \
         libgen.h \
         locale.h \
-        errno.h \
         stdbool.h \
         arpa/tftp.h \
         sys/filio.h \
index 20ea27df7a7cafdc736fc032013ec8b8207c77d1..baf592cb3192b220e4f5d60bee252e37d5fd0b58 100644 (file)
@@ -32,7 +32,6 @@
 
 #define HAVE_ARPA_INET_H 1
 #define HAVE_CLOSESOCKET_CAMEL 1
-#define HAVE_ERRNO_H 1
 #define HAVE_INTTYPES_H 1
 #define HAVE_IOCTLSOCKET_CAMEL 1
 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
index 2380182a06d322a5d7c08eaf44b9bd6f44f56ad8..9cbb8fc804018a22634585867542c3edb57af7b8 100644 (file)
@@ -44,7 +44,6 @@
 #define USE_MANUAL 1
 
 #define HAVE_ARPA_INET_H       1
-#define HAVE_ERRNO_H           1
 #define HAVE_FCNTL_H           1
 #define HAVE_FREEADDRINFO      1
 #define HAVE_GETADDRINFO       1
index b1bfa43e74df4ad922811f0e866ba1699df4868a..0ee185f8f8e3534eee7ae49b924a4cd585cbdffa 100644 (file)
@@ -37,7 +37,6 @@
 /* Define if you want the built-in manual */
 #define USE_MANUAL              1
 
-#define HAVE_ERRNO_H            1
 #define HAVE_NETINET_IN_H       1
 #define HAVE_SYS_SOCKET_H       1
 #define HAVE_NETDB_H            1
index e733e36e3f4ef62dc62ac882099c1addfb088b6f..17f7f05f862b69f3b48f22f6eee98a10027f611c 100644 (file)
@@ -80,9 +80,6 @@
 /* Define if you have the `closesocket' function. */
 #undef HAVE_CLOSESOCKET
 
-/* Define if you have the <errno.h> header file. */
-#define HAVE_ERRNO_H
-
 /* Define if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H
 
index 0d89ec0a4fa2aaa028c50719da98f89c30f513ea..8517591ae88f74329561119da7045ae6578b3fc1 100644 (file)
@@ -78,7 +78,6 @@
 #define HAVE_ARPA_INET_H 1
 #define HAVE_BASENAME 1
 #define HAVE_BOOL_T 1
-#define HAVE_ERRNO_H 1
 #define HAVE_FCNTL 1
 #define HAVE_FCNTL_H 1
 #define HAVE_FREEADDRINFO 1
index 349fd8cacad71913a8d567928e10b6407bde2dc9..a29ea7155bd10db31ddf8be26f38499ba614584f 100644 (file)
@@ -81,9 +81,6 @@
 /* Define if you have the `closesocket' function. */
 #undef HAVE_CLOSESOCKET
 
-/* Define if you have the <errno.h> header file. */
-#define HAVE_ERRNO_H
-
 /* Define if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H
 
index a4828214140ca9d9339393b6c1ba371608385910..7c9bde610dd8ff80224677b49e8ee0a2ec3aea66 100644 (file)
@@ -35,9 +35,6 @@
 /* Define if you have the <arpa/inet.h> header file. */
 /* #define HAVE_ARPA_INET_H 1 */
 
-/* Define if you have the <errno.h> header file. */
-#define HAVE_ERRNO_H 1
-
 /* Define if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1
 
 #  undef USE_WINSOCK
 #  undef HAVE_WINSOCK2_H
 #  undef HAVE_WS2TCPIP_H
-#  undef HAVE_ERRNO_H
 #  undef HAVE_GETHOSTNAME
 #  undef LWIP_POSIX_SOCKETS_IO_NAMES
 #  undef RECV_TYPE_ARG1
index deaa1c7f7f1b4f230db2dd5aca143ea5ab9b68f1..30829b482f1776e5f9749801db5f53d92341f0c7 100644 (file)
@@ -35,9 +35,6 @@
 /* Define if you have the <arpa/inet.h> header file.  */
 /* #define HAVE_ARPA_INET_H 1 */
 
-/* Define if you have the <errno.h> header file.  */
-/* #define HAVE_ERRNO_H 1 */
-
 /* Define if you have the <fcntl.h> header file.  */
 #define HAVE_FCNTL_H 1
 
index 67eb74473b069a23795ac198efab2c8f4f5693ef..8f8964e64307b4d83295172582e255c70475c120 100644 (file)
 /* Define to 1 if you have the `closesocket' function. */
 #cmakedefine HAVE_CLOSESOCKET 1
 
-/* Define to 1 if you have the <errno.h> header file. */
-#cmakedefine HAVE_ERRNO_H 1
-
 /* Define to 1 if you have the fcntl function. */
 #cmakedefine HAVE_FCNTL 1
 
index c53b0aad72261f865d8ccea4413ec997008d5a22..ac4a7f1b3526727a8af12435de651e836e48a56a 100644 (file)
 #include <string.h>
 #include <stdarg.h>
 #include <time.h>
-
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>