summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-18 00:34:37 (GMT)
committerYang Tse <yangsita@gmail.com>2007-02-18 00:34:37 (GMT)
commit385e6d0eea338bc49bceb0696f02c799732d90a1 (patch)
tree9d40e8d3052d269d096069f39e9821fd556f37f8 /setup_once.h
parentee2df583d3dcdc5b3aecb1a66815edc20b339119 (diff)
downloadc-ares-385e6d0eea338bc49bceb0696f02c799732d90a1.zip
c-ares-385e6d0eea338bc49bceb0696f02c799732d90a1.tar.gz
c-ares-385e6d0eea338bc49bceb0696f02c799732d90a1.tar.bz2
fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 6daf9d8..41b42e9 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -28,6 +28,13 @@
/*
+ * Inclusion of common header files.
+ */
+
+#include <errno.h>
+
+
+/*
* If we have the MSG_NOSIGNAL define, make sure we use
* it as the fourth argument of function send()
*/
@@ -219,10 +226,14 @@ typedef int sig_atomic_t;
#define ETIMEDOUT WSAETIMEDOUT
#define ECONNREFUSED WSAECONNREFUSED
#define ELOOP WSAELOOP
+#ifndef ENAMETOOLONG /* possible previous definition in errno.h */
#define ENAMETOOLONG WSAENAMETOOLONG
+#endif
#define EHOSTDOWN WSAEHOSTDOWN
#define EHOSTUNREACH WSAEHOSTUNREACH
+#ifndef ENOTEMPTY /* possible previous definition in errno.h */
#define ENOTEMPTY WSAENOTEMPTY
+#endif
#define EPROCLIM WSAEPROCLIM
#define EUSERS WSAEUSERS
#define EDQUOT WSAEDQUOT