summaryrefslogtreecommitdiff
path: root/lib/tdb2/tools/tdb2restore.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-02-21 15:29:12 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-02-21 15:29:12 +1030
commite6901fa35069e234044c94b87ac9df4064b31d1c (patch)
tree407c937d52bed64033f0e60e77b8fcd34233f543 /lib/tdb2/tools/tdb2restore.c
parentfb8cf568caf43615f7a06a623209a0fade629a35 (diff)
downloadsamba-e6901fa35069e234044c94b87ac9df4064b31d1c.tar.gz
samba-e6901fa35069e234044c94b87ac9df4064b31d1c.tar.bz2
samba-e6901fa35069e234044c94b87ac9df4064b31d1c.zip
lib/tdb2: tools should use config.h, and replace where available.
The tdb2 tools should #include "config.h" before tdb2.h (about to become a requirement) and use libreplace where available. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/tools/tdb2restore.c')
-rw-r--r--lib/tdb2/tools/tdb2restore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tdb2/tools/tdb2restore.c b/lib/tdb2/tools/tdb2restore.c
index 658215a16c..608b46de18 100644
--- a/lib/tdb2/tools/tdb2restore.c
+++ b/lib/tdb2/tools/tdb2restore.c
@@ -17,13 +17,19 @@
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)