summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-01-19 22:19:37 +0000
committerJeremy Katz <katzj@redhat.com>2005-01-19 22:19:37 +0000
commita00645ffc8ea505f82b2d0889e096bff0d27719f (patch)
tree83bea1ee9a99ad51f66818a7096e0694ebab4cff /isys
parent501f53f45d64207b094a77bafd8d395551499ecd (diff)
downloadanaconda-a00645ffc8ea505f82b2d0889e096bff0d27719f.tar.gz
anaconda-a00645ffc8ea505f82b2d0889e096bff0d27719f.tar.xz
anaconda-a00645ffc8ea505f82b2d0889e096bff0d27719f.zip
2005-01-19 Jeremy Katz <katzj@redhat.com>
* isys/pdc.c: Fix build if HDIO_GETGEO_BIG_RAW isn't defined. * isys/silraid.c: Likewise. * isys/hpt.c: Remove unused include. * isys/isys.c: Likewise.
Diffstat (limited to 'isys')
-rw-r--r--isys/hpt.c1
-rw-r--r--isys/isys.c1
-rw-r--r--isys/pdc.c13
-rw-r--r--isys/silraid.c13
4 files changed, 24 insertions, 4 deletions
diff --git a/isys/hpt.c b/isys/hpt.c
index cc18e5913..0b4eca77a 100644
--- a/isys/hpt.c
+++ b/isys/hpt.c
@@ -10,7 +10,6 @@
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
-#include <linux/hdreg.h>
#ifdef DIET
#include <sys/mount.h>
diff --git a/isys/isys.c b/isys/isys.c
index b562b635a..b41daf854 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -36,7 +36,6 @@
#include <scsi/scsi_ioctl.h>
#include <sys/vt.h>
#include <sys/types.h>
-#include <linux/hdreg.h>
#include <linux/fb.h>
#include <libintl.h>
#include <selinux/selinux.h>
diff --git a/isys/pdc.c b/isys/pdc.c
index 6d5364040..56a04fcbb 100644
--- a/isys/pdc.c
+++ b/isys/pdc.c
@@ -8,7 +8,6 @@
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
-#include <linux/hdreg.h>
#ifdef DIET
#include <sys/mount.h>
@@ -32,6 +31,18 @@ typedef unsigned int uint32_t;
#define BLKSSZGET _IO(0x12,104)/* get block device sector size */
#endif
+#ifndef HDIO_GETGEO_BIG_RAW
+#define HDIO_GETGEO_BIG_RAW 0x0331
+
+/* BIG GEOMETRY */
+struct hd_big_geometry {
+ unsigned char heads;
+ unsigned char sectors;
+ unsigned int cylinders;
+ unsigned long start;
+};
+#endif
+
struct promise_raid_conf {
char promise_id[24];
#define PR_MAGIC "Promise Technology, Inc."
diff --git a/isys/silraid.c b/isys/silraid.c
index 8256ca125..e7683f5e4 100644
--- a/isys/silraid.c
+++ b/isys/silraid.c
@@ -10,7 +10,6 @@
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
-#include <linux/hdreg.h>
#ifdef DIET
#include <sys/mount.h>
@@ -34,6 +33,18 @@ typedef unsigned int uint32_t;
#define BLKSSZGET _IO(0x12,104)/* get block device sector size */
#endif
+#ifndef HDIO_GETGEO_BIG_RAW
+#define HDIO_GETGEO_BIG_RAW 0x0331
+
+/* BIG GEOMETRY */
+struct hd_big_geometry {
+ unsigned char heads;
+ unsigned char sectors;
+ unsigned int cylinders;
+ unsigned long start;
+};
+#endif
+
struct sil_raid_conf {
char unknown[0x36]; /* 0x00 to 0x35 */
char diskname[32]; /* 0x36 to 0x56 */