summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-03-22 14:02:23 +0100
committerYang Tse <yangsita@gmail.com>2011-03-22 14:02:23 +0100
commit8c503ddf7993f05453f67baf8892178c428fa741 (patch)
tree643158c1092b64aff2a14ad70c25bea59b31b723 /setup_once.h
parentef8e2ad6017a9e3a1d08b5f9e73d2bb0773cd1bb (diff)
downloadc-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.h5
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>