Re: [Xen-devel] [Patch] fix compilation

Akio Takebe
2008-06-02T07:09:56Z

Hi, Keir

>I don''t think we''ve ever modified that source file, and it
builds okay
>usually.
My environment is Fedora9. I suspect my environment causes the error.
I checked the latest linux tree, and I found the following patch.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=fc31c7716355a226b8ed4e16f4581e5c8fa53570;hp=d1ab423502e787e264b4797a5fa200d804c4fd63

We probably need to backport it.
I made a patch based on the above patch.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>

diff -r 557a4a0a5eac scripts/mod/sumversion.c
--- a/scripts/mod/sumversion.c	Fri May 30 19:08:50 2008 +0100
+++ b/scripts/mod/sumversion.c	Tue Jun 03 01:09:18 2008 +0900
@@ -7,6 +7,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <string.h>
+#include <limits.h>
 #include "modpost.h"

 /*