Re: Problems compiling hdparm with string.h (2.4.x)

Vitezslav Samel (samel@mail.cz)
Thu, 1 Feb 2001 08:15:44 +0100


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"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/