summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/convertdb1.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/convertdb1.c b/tools/convertdb1.c
index 05bd99f7c..e73ab1e06 100644
--- a/tools/convertdb1.c
+++ b/tools/convertdb1.c
@@ -1,5 +1,10 @@
+#if defined(HAVE_CONFIG_H)
+#include "system.h"
+#else
#include <sys/types.h>
#include <fcntl.h>
+#include <string.h>
+#endif
#include <rpmlib.h>
#include <rpmdb.h>
@@ -213,9 +218,7 @@ exit:
static rpmdb db;
int
-main(argc, argv)
-int argc;
-char **argv;
+main(int argc, char ** argv)
{
FD_t fd;
int offset;