6f1f0b4ca8
- work around hdparm's usage of kernel headers, assume that we run it on little-endian machines only
21 lines
627 B
Diff
21 lines
627 B
Diff
--- hdparm-6.1/hdparm.h.incl 2005-06-08 14:21:57.000000000 +0200
|
|
+++ hdparm-6.1/hdparm.h 2005-06-08 14:27:50.000000000 +0200
|
|
@@ -24,3 +24,5 @@
|
|
extern void no_xt (void);
|
|
extern void process_dev (char *devname);
|
|
|
|
+#define IDE_DRIVE_TASK_OUT 3
|
|
+#define __le16_to_cpus(x) do {} while (0)
|
|
--- hdparm-6.1/hdparm.c.incl 2005-06-08 14:18:28.000000000 +0200
|
|
+++ hdparm-6.1/hdparm.c 2005-06-08 14:18:54.000000000 +0200
|
|
@@ -19,7 +19,8 @@
|
|
#include <linux/types.h>
|
|
#include <linux/hdreg.h>
|
|
#include <linux/major.h>
|
|
-#include <asm/byteorder.h>
|
|
+/* #include <asm/byteorder.h> */
|
|
+#include <endian.h>
|
|
|
|
#include "hdparm.h"
|
|
|