Check for _RPM_4_4_COMPAT in rpmlib.h too
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Jul 2008 08:55:57 +0000 (11:55 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Jul 2008 08:55:57 +0000 (11:55 +0300)
- limits the chances of compat includes not working due to include order
  a bit

lib/rpmlib.h

index 40fdcd5..df8870e 100644 (file)
@@ -15,7 +15,9 @@
 #include <rpm/rpmtag.h>
 #include <rpm/rpmds.h> /* XXX move rpmlib provides to rpmds instead */
 #include <rpm/rpmpgp.h>
+#ifdef _RPM_4_4_COMPAT
 #include <rpm/rpmlegacy.h> /* legacy compat definitions if enabled */
+#endif
 
 #ifdef __cplusplus
 extern "C" {