[PATCH] include/linux/coda.h

Me
2001-05-22T04:24:49Z

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

Coda.h assumes that __KERNEL__ can only be defined if __linux__ is, which is
painfully false. This allows the kernel compile to get farther on my token
FreeBSD box.

-Ryan

[-- Attachment #2: crosscompile.diff --]
[-- Type: text/x-c, Size: 516 bytes --]

--- linux/include/linux/coda.h Wed Apr 25 16:18:54 2001
+++ linux/include/linux/coda.h Mon May 21 21:19:21 2001
@@ -100,6 +100,10 @@

#if defined(__linux__)
#define cdev_t u_quad_t
+#else
+#define cdev_t dev_t
+#endif
+
#ifndef __KERNEL__
#if !defined(_UQUAD_T_) && (!defined(__GLIBC__) || __GLIBC__ < 2)
#define _UQUAD_T_ 1
@@ -108,9 +112,6 @@
#else /*__KERNEL__ */
typedef unsigned long long u_quad_t;
#endif /* __KERNEL__ */
-#else
-#define cdev_t dev_t
-#endif

#ifdef __CYGWIN32__
struct timespec {