2001-02-01 07:16:12

by Vitezslav Samel

[permalink] [raw]
Subject: Re: Problems compiling hdparm with string.h (2.4.x)

Hi!

> I've just tried to compile hdparm v3.9 with a vanilla 2.4.1 tree.
> Gcc complained about serveral parse errors in /usr/include/linux/string.h.
> Compiling with an >=ac6 release works fine.
> Why isn't the little string.h fix not included in 2.4.1?
>
> Regards, Gregor

Consider this little patch to hdparm-3.9

Cheers,
Vita


diff -urN hdparm-3.9.orig/hdparm.c hdparm-3.9/hdparm.c
--- hdparm-3.9.orig/hdparm.c Sat Feb 5 23:49:30 2000
+++ hdparm-3.9/hdparm.c Thu Feb 1 08:13:06 2001
@@ -16,7 +16,7 @@
#include <sys/times.h>
#include <sys/types.h>
#include <linux/hdreg.h>
-#include <linux/fs.h>
+#include <sys/mount.h>
#include <linux/major.h>

#define VERSION "v3.9"