summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-21 10:26:58 +0000
committerYang Tse <yangsita@gmail.com>2009-04-21 10:26:58 +0000
commit1509409fe11db68a6d40e08b5c122ff2ce51a53e (patch)
tree9a2eaef30d558fc33007df1f85b2bc7574d9620c /setup_once.h
parentdf96c987c6ea4ac121bdacc78b52a6f0f6555d39 (diff)
downloadc-ares-1509409fe11db68a6d40e08b5c122ff2ce51a53e.tar.gz
c-ares-1509409fe11db68a6d40e08b5c122ff2ce51a53e.tar.bz2
c-ares-1509409fe11db68a6d40e08b5c122ff2ce51a53e.zip
Moved potential inclusion of system's malloc.h and memory.h header files to
setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 4f88d99..bd5eba3 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -42,6 +42,14 @@
#include <sys/types.h>
#endif
+#ifdef NEED_MALLOC_H
+#include <malloc.h>
+#endif
+
+#ifdef NEED_MEMORY_H
+#include <memory.h>
+#endif
+
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif