summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-28 02:51:35 +0000
committerYang Tse <yangsita@gmail.com>2010-02-28 02:51:35 +0000
commitb6ffa03a21ed9ec830c1d94b0eed4885feb278d7 (patch)
tree009bfd0ae8904329c7986f9cd94bbe3f64ff620a
parent62f43da764223d03a476a7d6689b59a2800a3a7f (diff)
downloadc-ares-b6ffa03a21ed9ec830c1d94b0eed4885feb278d7.tar.gz
c-ares-b6ffa03a21ed9ec830c1d94b0eed4885feb278d7.tar.bz2
c-ares-b6ffa03a21ed9ec830c1d94b0eed4885feb278d7.zip
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
-rw-r--r--config-win32.h10
-rw-r--r--config.dos2
2 files changed, 12 insertions, 0 deletions
diff --git a/config-win32.h b/config-win32.h
index 48af822..d7b1179 100644
--- a/config-win32.h
+++ b/config-win32.h
@@ -219,6 +219,16 @@
#endif
/* ---------------------------------------------------------------- */
+/* TYPE SIZES */
+/* ---------------------------------------------------------------- */
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* ---------------------------------------------------------------- */
/* STRUCT RELATED */
/* ---------------------------------------------------------------- */
diff --git a/config.dos b/config.dos
index fdf46a3..7439aa3 100644
--- a/config.dos
+++ b/config.dos
@@ -31,6 +31,8 @@
#define NEED_MALLOC_H 1
#define RETSIGTYPE void
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
#define TIME_WITH_SYS_TIME 1
/* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */