From: Yang Tse Date: Sun, 18 Feb 2007 00:34:37 +0000 (+0000) Subject: fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h X-Git-Tag: upstream/1.10.0~1051 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=385e6d0eea338bc49bceb0696f02c799732d90a1;p=platform%2Fupstream%2Fc-ares.git fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h --- 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 + + +/* * 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