aboutsummaryrefslogtreecommitdiff
path: root/lib/hostsyn.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-04-26 17:23:28 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-04-26 17:23:28 +0000
commit3cbb1b2b64453c5504df5696ffbf72cb08e43f9c (patch)
treecd7d78df702dff218b638b7a614d796c20129b1b /lib/hostsyn.c
parentd75e58761370e4f4c5d496252509a3f2c98e6fd6 (diff)
Use the HAVE_MALLOC_H and HAVE_PROCESS_H defines
(more logical).
Diffstat (limited to 'lib/hostsyn.c')
-rw-r--r--lib/hostsyn.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/hostsyn.c b/lib/hostsyn.c
index fac78f11f..30dc4963a 100644
--- a/lib/hostsyn.c
+++ b/lib/hostsyn.c
@@ -26,9 +26,9 @@
#include <string.h>
#include <errno.h>
-#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
+#ifdef HAVE_MALLOC_H
#include <malloc.h>
-#else
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -55,13 +55,12 @@
#include <inet.h>
#include <stdlib.h>
#endif
-#endif
#ifdef HAVE_SETJMP_H
#include <setjmp.h>
#endif
-#ifdef WIN32
+#ifdef HAVE_PROCESS_H
#include <process.h>
#endif