lib/tdb2: tools should use config.h, and replace where available.
[ira/wip.git] / lib / tdb2 / tools / tdb2restore.c
index 658215a16c4c96708ada14860916201fbfd547a4..608b46de18d27d0be852a9139ae08ac37fa975c8 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "config.h"
 #include "tdb2.h"
 #include <assert.h>
+#ifdef HAVE_LIBREPLACE
+#include <replace.h>
+#include <system/filesys.h>
+#else
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
+#endif
 
 #define debug_fprintf(file, fmt, ...) do {/*nothing*/} while (0)