Messages in this thread Patch in this message | | | From | Me <> | Subject | [PATCH] include/linux/coda.h | Date | Mon, 21 May 2001 21:24:20 -0700 |
| |
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--- 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 { | |