- map db functions to rpm versions
authorMichael Schroeder <mls@suse.de>
Mon, 31 Aug 2009 14:46:57 +0000 (16:46 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 31 Aug 2009 14:46:57 +0000 (16:46 +0200)
ext/repo_rpmdb.c

index d87e90f..0c3b97d 100644 (file)
 #include <rpm/rpmdb.h>
 
 #ifndef DB_CREATE
-#include <db4/db.h>
+# ifndef FEDORA
+#  define db_env_create db_env_create_rpmdb
+#  define db_create db_create_rpmdb
+# endif
+# include <db4/db.h>
 #endif
 
 #include "pool.h"