]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
errno.h inclusion conditionally done in setup_once.h
authorYang Tse <yangsita@gmail.com>
Sun, 24 Jul 2011 02:39:43 +0000 (04:39 +0200)
committerYang Tse <yangsita@gmail.com>
Sun, 24 Jul 2011 02:39:43 +0000 (04:39 +0200)
33 files changed:
lib/Makefile.netware
lib/asyn-thread.c
lib/config-amigaos.h
lib/config-dos.h
lib/config-mac.h
lib/config-os400.h
lib/config-riscos.h
lib/config-vms.h
lib/config-win32.h
lib/config-win32ce.h
lib/connect.c
lib/easy.c
lib/hostip4.c
lib/http_ntlm.c
lib/inet_ntop.c
lib/inet_pton.c
lib/ldap.c
lib/qssl.c
lib/sendf.c
lib/setup.h
lib/setup_once.h
lib/strerror.c
lib/strtoofft.c
lib/transfer.c
lib/url.c
src/Makefile.netware
src/config-amigaos.h
src/config-mac.h
src/config-riscos.h
src/config-win32.h
src/main.c
tests/libtest/lib506.c
tests/libtest/test.h

index 2cc7c9ecc5c6c65167b2cd588cbf5576899032e5..91c8ae7f175c31bea2ff99e4dfebaf7fbcf333ec 100644 (file)
@@ -498,6 +498,7 @@ endif
        @echo $(DL)#define USE_MANUAL 1$(DL) >> $@
        @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
+       @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
index 8cb92d76ec0cbf9313270382031fd7c458598d77..0fcbc49ae9d94ab1c3f5865ce954bbce17f598dc 100644 (file)
@@ -23,7 +23,6 @@
 #include "setup.h"
 
 #include <string.h>
-#include <errno.h>
 
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
index 99b96d6563c2d26983bfef52fb047128709300f6..1474ba915ccc87e508fb3580cd6a3257ca057cb9 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, 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
@@ -26,6 +26,7 @@
 
 #define HAVE_ARPA_INET_H 1
 #define HAVE_CLOSESOCKET_CAMEL 1
+#define HAVE_ERRNO_H 1
 #define HAVE_GETHOSTBYADDR 1
 #define HAVE_INET_ADDR 1
 #define HAVE_INTTYPES_H 1
index 35d21aae27cd6c8163705bbbe62e0831370388db..694a30465da3e7cf7f08fc75c63a03c62e638642 100644 (file)
@@ -40,6 +40,7 @@
 #define PACKAGE  "curl"
 
 #define HAVE_ARPA_INET_H       1
+#define HAVE_ERRNO_H           1
 #define HAVE_FCNTL_H           1
 #define HAVE_GETADDRINFO       1
 #define HAVE_GETNAMEINFO       1
index 80af84e5272df716e454407c646f999f79865ab1..72e8260d11ecb1bdb65e566efca6c861e337f581 100644 (file)
@@ -30,6 +30,7 @@
 
 #define OS "mac"
 
+#define HAVE_ERRNO_H            1
 #define HAVE_NETINET_IN_H       1
 #define HAVE_SYS_SOCKET_H       1
 #define HAVE_SYS_SELECT_H       1
index 8dba1e4cdfadf3de4a35d5bcd0b914fae6599fcb..4d27309284543e9f012c0c17d6c502560fecb1af 100644 (file)
@@ -97,6 +97,9 @@
 /* Define if you have the <des.h> header file. */
 #undef HAVE_DES_H
 
+/* Define if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H
+
 /* Define if you have the <err.h> header file. */
 #undef HAVE_ERR_H
 
index 5ccf681243fe8463af251ce3d35f93f1724d6431..127dbdb0a1fea3190b4c1fdd1949594879a66de5 100644 (file)
@@ -92,6 +92,9 @@
 /* Define if you have the <des.h> header file. */
 #undef HAVE_DES_H
 
+/* Define if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H
+
 /* Define if you have the <err.h> header file. */
 #undef HAVE_ERR_H
 
index e3844f83bfc8fe63ae08fb89e718edde626fbd7c..75c77d1b1494730d40b0af3f43eee0c94de3d29a 100644 (file)
 /* Define if you have the uname function.  */
 #define HAVE_UNAME 1
 
+/* Define if you have the <errno.h> header file.  */
+#define HAVE_ERRNO_H 1
+
 /* Define if you have the <err.h> header file.  */
 #define HAVE_ERR_H 1
 
index 6768dda3c62ce9763e375b16cabd343b93f4eaa4..c4fe1b391512263f85533a85b91a6b29f9ffc57e 100644 (file)
@@ -39,6 +39,9 @@
 /* Define if you have the <crypto.h> header file.  */
 /* #define HAVE_CRYPTO_H 1 */
 
+/* Define if you have the <errno.h> header file.  */
+#define HAVE_ERRNO_H 1
+
 /* Define if you have the <err.h> header file.  */
 /* #define HAVE_ERR_H 1 */
 
index 8723342860bc9c982013937152b5912bf117ea08..93e3b8999330475d4efa422c61591cfd20367dfc 100644 (file)
@@ -39,6 +39,9 @@
 /* Define if you have the <crypto.h> header file.  */
 /* #define HAVE_CRYPTO_H 1 */
 
+/* Define if you have the <errno.h> header file.  */
+#define HAVE_ERRNO_H 1
+
 /* Define if you have the <err.h> header file.  */
 /* #define HAVE_ERR_H 1 */
 
index a9185978cb6389d78ff54aec772d3265fa3ca57a..b9b6c75897d0950b64d632c94b581669e83826d4 100644 (file)
@@ -69,7 +69,6 @@
 #endif
 
 #include <stdio.h>
-#include <errno.h>
 #include <string.h>
 
 #define _MPRINTF_REPLACE /* use our functions only */
index ac037d266bdaf81adff765607c6387f75c79cb41..657b04201f353fda0185f446129332b54d9cdd00 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #include "strequal.h"
 
index 67aefda29170666a6694570c44db7f4c241ad92a..5d85198184811b6c4744a52861f90f737b8958e7 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, 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
@@ -23,7 +23,6 @@
 #include "setup.h"
 
 #include <string.h>
-#include <errno.h>
 
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
index 189bb8af33a8648c4a2ca8366f45c989a1c8e3c6..166d169c9fe1568a987dd39f9ed1ec57fd10eb71 100644 (file)
@@ -49,7 +49,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <signal.h>
-#include <errno.h>
 #endif
 
 #if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
index 34cae801a657621ec227c6b93152add16a97c31d..bb175b41734d0654b4a639ad38804fdef3a874bd 100644 (file)
@@ -35,7 +35,6 @@
 #include <arpa/inet.h>
 #endif
 #include <string.h>
-#include <errno.h>
 
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>
index d08c7c666fa8549a282b3b9c1c109f14e14b1cdd..5a781abf5f49a447bd3c8629beac31304ee9a8d1 100644 (file)
@@ -33,7 +33,6 @@
 #include <arpa/inet.h>
 #endif
 #include <string.h>
-#include <errno.h>
 
 #include "inet_pton.h"
 
index 62a9ffc196cb6400bd94809e67c02eaa21bdf6ee..ccdd83e6b9b2ee8c25dc792a39eab91986ee262d 100644 (file)
@@ -41,7 +41,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #ifdef CURL_LDAP_WIN            /* Use Windows LDAP implementation. */
 # include <winldap.h>
index 60ea6da23918b32036e3b3def7d3b9532ae7161f..0e263ccd1c2bb824d73f6a90042747ba869a916b 100644 (file)
@@ -24,7 +24,6 @@
 
 #ifdef USE_QSOSSL
 #include <qsossl.h>
-#include <errno.h>
 #include <string.h>
 #ifdef HAVE_LIMITS_H
 #  include <limits.h>
index 0172ae7c399718989c410e257cf787c87241efe1..50b194b667650ae7c86da93f09c53ae62ddccd9a 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
-#include <errno.h>
 
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h> /* required for send() & recv() prototypes */
index 91a65571368cb204e08a891c35f99e077e4a1c01..2aaf564dc3792167bd44c3d9cf9e4f65ee1c71c2 100644 (file)
 #ifdef HAVE_ASSERT_H
 #include <assert.h>
 #endif
-#include <errno.h>
 
 #ifdef __TANDEM /* for nsr-tandem-nsk systems */
 #include <floss.h>
index b449807db31be7654f4d610e592a5c2f1089fd1e..751102bed0fe83ca4e7b40d85e3b2a2aab57562d 100644 (file)
 #include <string.h>
 #include <stdarg.h>
 #include <ctype.h>
+
+#ifdef HAVE_ERRNO_H
 #include <errno.h>
+#endif
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
index 0a883421e0e370e8da6a2bba13fc0f07c3013d08..adee28891194e37c4f708d045f5639163907a6fb 100644 (file)
@@ -36,7 +36,6 @@
 #include <curl/curl.h>
 #include <stdlib.h>
 #include <string.h>
-#include <errno.h>
 
 #ifdef USE_LIBIDN
 #include <idna.h>
index 55a6ffd0d996dc6cff666eb04d47af286de155d9..dd897cf1678960a2c5541057de4208b8a06e7bdd 100644 (file)
@@ -34,7 +34,6 @@
 #ifdef NEED_CURL_STRTOLL
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 /* Range tests can be used for alphanum decoding if characters are consecutive,
    like in ASCII. Else an array is scanned. Determine this condition now. */
index 1c2afc4a259ffbb782c4ea9ce11ed2c636bd3f11..6889fa7c76b1fed76382172004f9a4d65020a19b 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #include "strtoofft.h"
 #include "strequal.h"
index adb96c4cc634a0de9183e8c2e35617d8a4ca218c..b28446c3be14f003b02181e576c848595c277335 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -29,7 +29,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #ifdef WIN32
 #include <time.h>
index 85e0c92ee30824389cf326a6f7d626a416badc3e..0b0e8355d1e4c65b43bcd3d70ea1005845d4f2e6 100644 (file)
@@ -491,6 +491,7 @@ endif
        @echo $(DL)#define USE_MANUAL 1$(DL) >> $@
        @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
+       @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
        @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
index fba875dab06e7ac6b4714eb074cf2afac942a0b4..7f8e0a86943a0f54c150c4128163caeba618b558 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, 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
@@ -30,6 +30,7 @@
 #define OS "AmigaOS"
 
 #define HAVE_CLOSESOCKET_CAMEL  1
+#define HAVE_ERRNO_H            1
 #define HAVE_UNISTD_H           1
 #define HAVE_STRDUP             1
 #define HAVE_UTIME              1
index f8aeb7a66b7b0c4c1dfa3f1d5dc14fc8bc708c00..19c24c7602aba8f0fc2c8a46a3fb94f1ce952f33 100644 (file)
@@ -32,6 +32,7 @@
 #define USE_MANUAL 1
 
 #define HAVE_UNISTD_H           1
+#define HAVE_ERRNO_H            1
 #define HAVE_FCNTL_H            1
 #define HAVE_UTIME_H            1
 #define HAVE_SYS_UTIME_H        1
index 7816bab1342018c54b6d373541fa4fbdbe053423..c9aa7bcc0dadff04b77b2bd3b6ec5d831bf31c54 100644 (file)
@@ -91,6 +91,9 @@
 /* Define if you have the <des.h> header file. */
 #undef HAVE_DES_H
 
+/* Define if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H
+
 /* Define if you have the <err.h> header file. */
 #undef HAVE_ERR_H
 
index 38a3298263ab17dc3931a7817fb464d491b68434..e5cbcf0df6149bead5543b84b0df2c3070c3a955 100644 (file)
@@ -30,6 +30,9 @@
 /*                          HEADER FILES                            */
 /* ---------------------------------------------------------------- */
 
+/* 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 a68963df0624d8c7823bf10295e9f084035a6faa..db4405c4af5724bda0637f4eebd638c28c19ba9e 100644 (file)
@@ -34,7 +34,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <ctype.h>
-#include <errno.h>
 
 #if defined(MSDOS) || defined(WIN32)
 #  if defined(HAVE_LIBGEN_H) && defined(HAVE_BASENAME)
index 6476b9546aa0cffeec0ec67c16e34fa190ab7650..f9d2efd0805c7ca7d5cdd5c39045416466406ada 100644 (file)
@@ -22,7 +22,6 @@
 #include "test.h"
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #include <curl/mprintf.h>
 
index 33d7bed83674b66aa80e332e31dcb41df6dc446a..046b5504e44fbad7aaae3128a557e8626a454ca0 100644 (file)
@@ -33,7 +33,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <errno.h>
 
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>