arla 0.9 : cannot compile on linux

Aaron M. Ucko amu at mit.edu
Tue Sep 15 17:29:13 CEST 1998


<lha at elexir.e.kth.se> (Love) writes:

> --- xfs_locl.h  1998/07/19 01:24:38     1.15
> +++ xfs_locl.h  1998/09/15 14:54:20
> @@ -44,7 +44,9 @@
>  #endif
>  
>  #include <linux/version.h>
> +#ifdef HAVE_LINUX_MODVERSIONS_H
>  #include <linux/modversions.h>
> +#endif
>  #include <linux/errno.h>
>  #include <linux/fs.h>
>  #include <linux/malloc.h>

I believe the recommended approach is more along the lines of

--- /home/amu/arla-0.9/xfs/linux/xfs_locl.h	Thu Jul 30 20:07:29 1998
+++ xfs_locl.h	Tue Sep 15 11:26:12 1998
@@ -43,8 +43,11 @@
 #include <config.h>
 #endif
 
-#include <linux/version.h>
-#include <linux/modversions.h>
+#ifdef HAVE_LINUX_MODVERSIONS_H
+#define MODVERSIONS
+#endif
+
+#include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/malloc.h>
@@ -52,7 +55,6 @@
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/locks.h>
-#include <linux/module.h>
 
 #if LINUX_VERSION_CODE > 131238
 #define LINUX2_1 1

-- 
Aaron M. Ucko, KB1CJC <amu at mit.edu> (finger amu at monk.mit.edu)





More information about the Arla-drinkers mailing list