aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-06 19:09:57 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-06 19:09:57 +0000
commitfabbb3fc34aa70dc53b384fe5c51de8440215f90 (patch)
tree94e24e9b0d8c95424720173114ebeda94cfa1e95 /ares
parent1db063e70532c431f6b4043257836e6ce04a976e (diff)
Added HAVE_PROCESS_H for DOS/Win32.
Include <process.h> for getpid() in ares_init.c.
Diffstat (limited to 'ares')
-rw-r--r--ares/Makefile.dj2
-rw-r--r--ares/ares_init.c3
-rw-r--r--ares/config-win32.h3
3 files changed, 7 insertions, 1 deletions
diff --git a/ares/Makefile.dj b/ares/Makefile.dj
index b22221b47..f8156e1e1 100644
--- a/ares/Makefile.dj
+++ b/ares/Makefile.dj
@@ -11,7 +11,7 @@ include Makefile.inc
CFLAGS += -DWATT32 -DHAVE_AF_INET6 -DHAVE_PF_INET6 -DHAVE_FIONBIO \
-DHAVE_STRUCT_IN6_ADDR -DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID \
-DHAVE_SYS_TIME_H -DHAVE_STRUCT_SOCKADDR_IN6 -DHAVE_STRUCT_ADDRINFO \
- -DHAVE_SIGNAL_H -DHAVE_SIG_ATOMIC_T -DRETSIGTYPE='void' \
+ -DHAVE_SIGNAL_H -DHAVE_SIG_ATOMIC_T -DRETSIGTYPE='void' -DHAVE_PROCESS_H \
-DHAVE_ARPA_NAMESER_H -DNS_INADDRSZ=4 -DHAVE_RECV -DHAVE_SEND \
-DSEND_TYPE_ARG1='int' -DSEND_QUAL_ARG2='const' \
-DSEND_TYPE_ARG2='void*' -DSEND_TYPE_ARG3='int' \
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 1fd43f4b9..da2323ff5 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -43,6 +43,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_PROCESS_H
+#include <process.h> /* Some have getpid() here */
+#endif
#endif
#include <stdio.h>
diff --git a/ares/config-win32.h b/ares/config-win32.h
index 6fd81181e..a44563204 100644
--- a/ares/config-win32.h
+++ b/ares/config-win32.h
@@ -38,6 +38,9 @@
/* Define if you have the <time.h> header file. */
#define HAVE_TIME_H 1
+/* Define if you have the <process.h> header file. */
+#define HAVE_PROCESS_H 1
+
/* Define if you have the <unistd.h> header file. */
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
defined(__POCC__)