summaryrefslogtreecommitdiff
path: root/ext/repo_rpmdb.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-10-19 14:44:01 +0200
committerMichael Schroeder <mls@suse.de>2012-10-19 14:44:01 +0200
commitdd3f9bb02ea7aec77311340f2ff21ffc9fd39d65 (patch)
tree6f40d0c308bc94b15f6e369782fb58904cad278f /ext/repo_rpmdb.c
parent6afa7f074f6437f73d036b2c05292cc15216949f (diff)
downloadlibsolv-dd3f9bb02ea7aec77311340f2ff21ffc9fd39d65.tar.gz
libsolv-dd3f9bb02ea7aec77311340f2ff21ffc9fd39d65.tar.bz2
libsolv-dd3f9bb02ea7aec77311340f2ff21ffc9fd39d65.zip
check for rpm/db.h header file
Diffstat (limited to 'ext/repo_rpmdb.c')
-rw-r--r--ext/repo_rpmdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c
index 38de58a..59cd153 100644
--- a/ext/repo_rpmdb.c
+++ b/ext/repo_rpmdb.c
@@ -32,10 +32,10 @@
#include <rpm/rpmdb.h>
#ifndef DB_CREATE
-# ifdef FEDORA
-# include <db.h>
-# else
+# if defined(SUSE) || defined(HAVE_RPM_DB_H)
# include <rpm/db.h>
+# else
+# include <db.h>
# endif
#endif