lkml.org 
[lkml]   [2001]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] include/linux/coda.h
Date
 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 {
\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.065 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site