[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [Patch] fix compilation



Hi,

I got the following compilation error.
This patch fix the error, I think it is needed for xen-testing tree.

/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c: In function 
'get_src_version':
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
'PATH_MAX' undeclared (first use in this function)
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
(Each undeclared identifier is reported only once
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: error: 
for each function it appears in.)
/root/unstable/linux-2.6.18-xen.hg/scripts/mod/sumversion.c:384: 
warning: unused variable 'filelist'
make[7]: *** [scripts/mod/sumversion.o] Error 1
make[6]: *** [scripts/mod] Error 2
make[5]: *** [scripts] Error 2
make[4]: *** [modules] Error 2
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/root/unstable/xen-unstable.hg/build-linux-2.
6.18-xen_x86_32'
make[2]: *** [build] Error 1
make[2]: Leaving directory `/root/unstable/xen-unstable.hg'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/root/unstable/xen-unstable.hg'
make: *** [install-kernels] Error 1

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

Best Regards,

Akio Takebe

---
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  Mon Jun 02 19:47:43 2008 +0900
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <string.h>
 #include "modpost.h"
+#include <linux/limits.h>
 
 /*
  * Stolen form Cryptographic API.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.