diff options
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | rpm5compat.h | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/Makefile.PL b/Makefile.PL index 6ab4b17..f760e93 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -60,7 +60,7 @@ if ($pversion ge v4.4.90 && $pversion lt v4.5) { push @rpmflags, '-DRPM_450'; } if ($pversion ge v5.0) { - push @rpmflags, '-DRPM_500 -DWITH_DB'; + push @rpmflags, '-DRPM_500'; } } my $ccflags = join(' ', '-Wall -fno-strict-aliasing', @rpmflags); diff --git a/rpm5compat.h b/rpm5compat.h index fcdb327..76cc1bf 100644 --- a/rpm5compat.h +++ b/rpm5compat.h @@ -10,24 +10,13 @@ #define RPM_INT16_TYPE RPM_UINT16_TYPE #define RPM_INT32_TYPE RPM_UINT32_TYPE -#ifndef H_RPMEVR +#define WITH_DB #include <rpm/rpmevr.h> -#endif -#ifndef H_RPMIO #include <rpm/rpmio.h> -#endif -#ifndef _H_PKGIO #include <rpm/pkgio.h> -#endif -#ifndef H_RPMCB #include <rpm/rpmcb.h> -#endif -#ifndef H_RPMTS #include <rpm/rpmts.h> -#endif -#ifndef _H_MACRO_ #include <rpm/rpmmacro.h> -#endif enum hMagic { HEADER_MAGIC_NO = 0, |