summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-23 14:14:35 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-23 14:14:35 +0200
commit3786b6640e11482b4573dc0cf1ffabdf5f50cbbc (patch)
tree218787bc550672f18abee76a51255186994a7e51 /system.h
parent2553ca2fe32f848c5a328ff996e627cc73249f18 (diff)
downloadrpm-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.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/system.h b/system.h
index bdcb3a762..83f358755 100644
--- a/system.h
+++ b/system.h
@@ -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