diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-23 14:14:35 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-23 14:14:35 +0200 |
commit | 3786b6640e11482b4573dc0cf1ffabdf5f50cbbc (patch) | |
tree | 218787bc550672f18abee76a51255186994a7e51 /lib/cpio.c | |
parent | 2553ca2fe32f848c5a328ff996e627cc73249f18 (diff) | |
download | librpm-tizen-3786b6640e11482b4573dc0cf1ffabdf5f50cbbc.tar.gz librpm-tizen-3786b6640e11482b4573dc0cf1ffabdf5f50cbbc.tar.bz2 librpm-tizen-3786b6640e11482b4573dc0cf1ffabdf5f50cbbc.zip |
Move major, minor + makedev portability stuff out of system.h, simplify
- only cpio.c needs, move it there
- if none of the standard headers define these, its not our headache anymore
Diffstat (limited to 'lib/cpio.c')
-rw-r--r-- | lib/cpio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cpio.c b/lib/cpio.c index 9003494b7..e71f7cb7e 100644 --- a/lib/cpio.c +++ b/lib/cpio.c @@ -9,6 +9,14 @@ #include "system.h" +#if MAJOR_IN_MKDEV +#include <sys/mkdev.h> +#elif MAJOR_IN_SYSMACROS +#include <sys/sysmacros.h> +#else +#include <sys/types.h> /* already included from system.h */ +#endif + #include <rpm/rpmio.h> #include <rpm/rpmlog.h> |