diff options
author | Yang Tse <yangsita@gmail.com> | 2011-03-22 14:02:23 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-03-22 14:02:23 +0100 |
commit | 8c503ddf7993f05453f67baf8892178c428fa741 (patch) | |
tree | 643158c1092b64aff2a14ad70c25bea59b31b723 /setup_once.h | |
parent | ef8e2ad6017a9e3a1d08b5f9e73d2bb0773cd1bb (diff) | |
download | c-ares-8c503ddf7993f05453f67baf8892178c428fa741.tar.gz c-ares-8c503ddf7993f05453f67baf8892178c428fa741.tar.bz2 c-ares-8c503ddf7993f05453f67baf8892178c428fa741.zip |
System's errno.h inclusion cleanup.
System's errno.h is conditionally included from setup_once.h
Diffstat (limited to 'setup_once.h')
-rw-r--r-- | setup_once.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setup_once.h b/setup_once.h index 54c46b4..b185faa 100644 --- a/setup_once.h +++ b/setup_once.h @@ -2,7 +2,7 @@ #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 * documentation for any purpose and without fee is hereby granted, provided @@ -35,7 +35,10 @@ #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> |