Skip to content

Commit

Permalink
System's errno.h inclusion cleanup.
Browse files Browse the repository at this point in the history
System's errno.h is conditionally included from setup_once.h
  • Loading branch information
yangtse committed Mar 22, 2011
1 parent ef8e2ad commit 8c503dd
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion adig.c
Expand Up @@ -51,7 +51,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>


#include "ares.h" #include "ares.h"
#include "ares_dns.h" #include "ares_dns.h"
Expand Down
1 change: 0 additions & 1 deletion ares_init.c
Expand Up @@ -63,7 +63,6 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <time.h> #include <time.h>
#include <errno.h>
#include "ares.h" #include "ares.h"
#include "inet_net_pton.h" #include "inet_net_pton.h"
#include "ares_library_init.h" #include "ares_library_init.h"
Expand Down
1 change: 0 additions & 1 deletion ares_process.c
Expand Up @@ -63,7 +63,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <errno.h>


#include "ares.h" #include "ares.h"
#include "ares_dns.h" #include "ares_dns.h"
Expand Down
1 change: 0 additions & 1 deletion ares_search.c
Expand Up @@ -20,7 +20,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>


#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
Expand Down
1 change: 1 addition & 0 deletions config-dos.h
Expand Up @@ -8,6 +8,7 @@


#define PACKAGE "c-ares" #define PACKAGE "c-ares"


#define HAVE_ERRNO_H 1
#define HAVE_GETTIMEOFDAY 1 #define HAVE_GETTIMEOFDAY 1
#define HAVE_IOCTLSOCKET 1 #define HAVE_IOCTLSOCKET 1
#define HAVE_IOCTLSOCKET_FIONBIO 1 #define HAVE_IOCTLSOCKET_FIONBIO 1
Expand Down
5 changes: 4 additions & 1 deletion config-win32.h
Expand Up @@ -2,7 +2,7 @@
#define __ARES_CONFIG_WIN32_H #define __ARES_CONFIG_WIN32_H




/* Copyright (C) 2004 - 2010 by Daniel Stenberg et al /* Copyright (C) 2004 - 2011 by Daniel Stenberg et al
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided * documentation for any purpose and without fee is hereby granted, provided
Expand All @@ -26,6 +26,9 @@
/* Define if you have the <assert.h> header file. */ /* Define if you have the <assert.h> header file. */
#define HAVE_ASSERT_H 1 #define HAVE_ASSERT_H 1


/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1

/* Define if you have the <getopt.h> header file. */ /* Define if you have the <getopt.h> header file. */
#if defined(__MINGW32__) || defined(__POCC__) #if defined(__MINGW32__) || defined(__POCC__)
#define HAVE_GETOPT_H 1 #define HAVE_GETOPT_H 1
Expand Down
1 change: 0 additions & 1 deletion inet_net_pton.c
Expand Up @@ -37,7 +37,6 @@
#endif #endif


#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion inet_ntop.c
Expand Up @@ -36,7 +36,6 @@
#endif #endif


#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
Expand Down
5 changes: 4 additions & 1 deletion setup_once.h
Expand Up @@ -2,7 +2,7 @@
#define __SETUP_ONCE_H #define __SETUP_ONCE_H




/* Copyright (C) 2004 - 2010 by Daniel Stenberg et al /* Copyright (C) 2004 - 2011 by Daniel Stenberg et al
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided * documentation for any purpose and without fee is hereby granted, provided
Expand Down Expand Up @@ -35,7 +35,10 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <ctype.h> #include <ctype.h>

#ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif


#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
Expand Down

0 comments on commit 8c503dd

Please sign in to comment.