summaryrefslogtreecommitdiff
path: root/source4/lib/replace/win32
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-26 15:59:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:58 -0500
commitf801ad359290c51d3216c755fb2a8344babb484f (patch)
tree7762b44cb1a13ac969e25d63ec0d9e4c118635b4 /source4/lib/replace/win32
parente337caeed1459f876449611ae1684616d0ea8f55 (diff)
downloadsamba-f801ad359290c51d3216c755fb2a8344babb484f.tar.gz
samba-f801ad359290c51d3216c755fb2a8344babb484f.tar.bz2
samba-f801ad359290c51d3216c755fb2a8344babb484f.zip
r10510: Decrease the amount of data included by includes.h a bit
(This used to be commit 03647e1321cf6c9bd6ced3945265f635e9468973)
Diffstat (limited to 'source4/lib/replace/win32')
-rw-r--r--source4/lib/replace/win32/replace.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/lib/replace/win32/replace.h b/source4/lib/replace/win32/replace.h
index 94fa140681..185d448d95 100644
--- a/source4/lib/replace/win32/replace.h
+++ b/source4/lib/replace/win32/replace.h
@@ -1,6 +1,18 @@
#ifndef _WIN32_REPLACE_H
#define _WIN32_REPLACE_H
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+#endif
+
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
/* Map BSD Socket errorcodes to the WSA errorcodes (if possible) */
#define EAFNOSUPPORT WSAEAFNOSUPPORT