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 2cc7c9e..91c8ae7 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 8cb92d7..0fcbc49 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 99b96d6..1474ba9 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 35d21aa..694a304 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 80af84e..72e8260 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 8dba1e4..4d27309 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 5ccf681..127dbdb 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 e3844f8..75c77d1 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 6768dda..c4fe1b3 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 8723342..93e3b89 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 a918597..b9b6c75 100644 (file)
@@ -69,7 +69,6 @@
 #endif
 
 #include <stdio.h>
-#include <errno.h>
 #include <string.h>
 
 #define _MPRINTF_REPLACE /* use our functions only */
index ac037d2..657b042 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #include "strequal.h"
 
index 67aefda..5d85198 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 189bb8a..166d169 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 34cae80..bb175b4 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 d08c7c6..5a781ab 100644 (file)
@@ -33,7 +33,6 @@
 #include <arpa/inet.h>
 #endif
 #include <string.h>
-#include <errno.h>
 
 #include "inet_pton.h"
 
index 62a9ffc..ccdd83e 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 60ea6da..0e263cc 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 0172ae7..50b194b 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 91a6557..2aaf564 100644 (file)
 #ifdef HAVE_ASSERT_H
 #include <assert.h>
 #endif
-#include <errno.h>
 
 #ifdef __TANDEM /* for nsr-tandem-nsk systems */
 #include <floss.h>
index b449807..751102b 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 0a88342..adee288 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 55a6ffd..dd897cf 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 1c2afc4..6889fa7 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 adb96c4..b28446c 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 85e0c92..0b0e835 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 fba875d..7f8e0a8 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 f8aeb7a..19c24c7 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 7816bab..c9aa7bc 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 38a3298..e5cbcf0 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 a68963d..db4405c 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 6476b95..f9d2efd 100644 (file)
@@ -22,7 +22,6 @@
 #include "test.h"
 #include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 
 #include <curl/mprintf.h>
 
index 33d7bed..046b550 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>