summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/replace/replace.h1
-rw-r--r--source3/lib/replace/system/network.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 45902657a2..e42d5ff168 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -97,7 +97,6 @@ void *rep_memmove(void *dest,const void *src,int size);
#endif
#ifndef HAVE_TIMEGM
-struct tm;
#define timegm rep_timegm
/* prototype is in "system/time.h" */
#endif
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index 10e9f66bd9..0b0dbcb88d 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/lib/replace/system/network.h
@@ -49,6 +49,10 @@
#include <netinet/tcp.h>
#endif
+#if !defined(HAVE_GETADDRINFO)
+#include "getaddrinfo.h"
+#endif
+
/*
* The next three defines are needed to access the IPTOS_* options
* on some systems.