*/
#include "system.h"
-#include "rpmdb/rpmdb_internal.h" /* XXX for mergesort */
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+#include "lib/rpmdb_internal.h" /* XXX for mergesort */
#define ISIZE sizeof(int)
#define PSIZE sizeof(unsigned char *)