summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-03-22 19:51:15 (GMT)
committerYang Tse <yangsita@gmail.com>2011-03-22 19:51:15 (GMT)
commit3abad87d88fc77295230ed8c732f24bfb05f4397 (patch)
tree1c8a81e2e31dad6967fd44cb4019b648f64dd15f /setup_once.h
parentc7ce7c7d4597300e7ee4079192da3c02d567223f (diff)
downloadc-ares-3abad87d88fc77295230ed8c732f24bfb05f4397.zip
c-ares-3abad87d88fc77295230ed8c732f24bfb05f4397.tar.gz
c-ares-3abad87d88fc77295230ed8c732f24bfb05f4397.tar.bz2
setup_once: system error codes for Windows CE
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index b185faa..a333f54 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -460,6 +460,18 @@ typedef int sig_atomic_t;
/*
+ * System error codes for Windows CE
+ */
+
+#if defined(WIN32) && !defined(HAVE_ERRNO_H)
+#define ENOENT ERROR_FILE_NOT_FOUND
+#define ESRCH ERROR_PATH_NOT_FOUND
+#define ENOMEM ERROR_NOT_ENOUGH_MEMORY
+#define ENOSPC ERROR_INVALID_PARAMETER
+#endif
+
+
+/*
* Actually use __32_getpwuid() on 64-bit VMS builds for getpwuid()
*/