summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbback.c11
-rw-r--r--source3/tdb/tdbbackup.c12
2 files changed, 23 insertions, 0 deletions
diff --git a/source3/tdb/tdbback.c b/source3/tdb/tdbback.c
index 744cface55..9466c29991 100644
--- a/source3/tdb/tdbback.c
+++ b/source3/tdb/tdbback.c
@@ -18,6 +18,11 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifdef STANDALONE
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
@@ -27,10 +32,16 @@
#include <fcntl.h>
#include <time.h>
#include <sys/mman.h>
+
#include <sys/stat.h>
#include <sys/time.h>
#include <ctype.h>
#include <signal.h>
+
+#else
+#include "includes.h"
+#endif
+
#include "tdb.h"
static int failed;
diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c
index 0eaf6b6c0b..1a0e1c1588 100644
--- a/source3/tdb/tdbbackup.c
+++ b/source3/tdb/tdbbackup.c
@@ -41,6 +41,11 @@
*/
+#ifdef STANDALONE
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
@@ -54,6 +59,13 @@
#include <sys/time.h>
#include <ctype.h>
#include <signal.h>
+
+#else
+
+#include "includes.h"
+
+#endif
+
#include "tdb.h"
#include "tdbback.h"