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 /system.h | |
parent | 2553ca2fe32f848c5a328ff996e627cc73249f18 (diff) | |
download | rpm-3786b6640e11482b4573dc0cf1ffabdf5f50cbbc.tar.gz rpm-3786b6640e11482b4573dc0cf1ffabdf5f50cbbc.tar.bz2 rpm-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 'system.h')
-rw-r--r-- | system.h | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -43,26 +43,6 @@ extern char ** environ; # endif #endif -/* Since major is a function on SVR4, we can't use `ifndef major'. */ -#if MAJOR_IN_MKDEV -#include <sys/mkdev.h> -#define HAVE_MAJOR -#endif -#if MAJOR_IN_SYSMACROS -#include <sys/sysmacros.h> -#define HAVE_MAJOR -#endif -#ifdef major /* Might be defined in sys/types.h. */ -#define HAVE_MAJOR -#endif - -#ifndef HAVE_MAJOR -#define major(dev) (((dev) >> 8) & 0xff) -#define minor(dev) ((dev) & 0xff) -#define makedev(maj, min) (((maj) << 8) | (min)) -#endif -#undef HAVE_MAJOR - #ifdef HAVE_UTIME_H #include <utime.h> #endif |