public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/linux/coda.h
@ 2001-05-22  4:24 Me
  2001-05-22 13:18 ` Jan Harkes
  0 siblings, 1 reply; 11+ messages in thread
From: Me @ 2001-05-22  4:24 UTC (permalink / raw)
  To: linux-kernel

[-- 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 {

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-05-24 17:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-22  4:24 [PATCH] include/linux/coda.h Me
2001-05-22 13:18 ` Jan Harkes
2001-05-22 14:21   ` Me
2001-05-22 14:34     ` Alan Cox
2001-05-22 15:57       ` David Woodhouse
2001-05-22 16:22         ` Jan Harkes
2001-05-22 16:40       ` Ryan Cumming
2001-05-22 16:56         ` UML cross-platform build problems (was Re: [PATCH] include/linux/coda.h) Jan Harkes
2001-05-22 20:13           ` Jeff Dike
2001-05-22 18:06         ` [PATCH] include/linux/coda.h Alan Cox
2001-05-24 17:33         ` Thomas Dodd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox