r25783: socket_wrapper: don't include "includes.h"
[samba.git] / source4 / lib / socket_wrapper / socket_wrapper.c
index c13cb6a3b08ef05b54987cb2b71ed89b5af1edf1..574d8ec5e4ffdacd2fe05e808879f5144647824c 100644 (file)
 #ifdef _SAMBA_BUILD_
 
 #define SOCKET_WRAPPER_NOT_REPLACE
-#include "includes.h"
+#include "lib/replace/replace.h"
 #include "system/network.h"
 #include "system/filesys.h"
-
-#ifdef malloc
-#undef malloc
-#endif
-#ifdef calloc
-#undef calloc
-#endif
-#ifdef strdup
-#undef strdup
-#endif
+#include "system/time.h"
 
 #else /* _SAMBA_BUILD_ */
 
 #include <string.h>
 #include <stdio.h>
 
-#define _PUBLIC_
+#endif
 
+#ifndef _PUBLIC_
+#define _PUBLIC_
 #endif
 
 #define SWRAP_DLIST_ADD(list,item) do { \