instead of "#ifdef _SAMBA_BUILD_".
This is to be able to use socket_wrapper in other projects
that also use libreplace.
is set.
*/
-#ifdef _SAMBA_BUILD_
+#include "config.h"
+
+#ifdef HAVE_LIBREPLACE
#define SOCKET_WRAPPER_NOT_REPLACE
#include "replace.h"
#include "system/filesys.h"
#include "system/time.h"
-#else /* _SAMBA_BUILD_ */
+#else /* HAVE_LIBREPLACE */
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdint.h>
-#endif
+#endif /* HAVE_LIBREPLACE */
#ifndef _PUBLIC_
#define _PUBLIC_