r8192c: fix compile with kernel 2.6.18
[opendreambox.git] / meta-opendreambox / recipes-connectivity / realtek / r8192c / 0001-Fix-compile-with-kernel-2.6.18.patch
1 From 59c1526c65436175002466fa54901a9a0ea36140 Mon Sep 17 00:00:00 2001
2 From: Andreas Oberritter <obi@opendreambox.org>
3 Date: Wed, 6 Feb 2013 22:45:07 +0100
4 Subject: [PATCH] Fix compile with kernel 2.6.18
5
6 include/rtw_mlme.h:594:50: error: unknown type name 'bool'
7 ---
8  include/osdep_service.h |    3 +++
9  1 file changed, 3 insertions(+)
10
11 diff --git a/include/osdep_service.h b/include/osdep_service.h
12 index 2802187..efc6e33 100644
13 --- a/include/osdep_service.h
14 +++ b/include/osdep_service.h
15 @@ -143,6 +143,9 @@
16         typedef void timer_hdl_return;
17         typedef void* timer_hdl_context;
18         typedef struct work_struct _workitem;
19 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
20 +       typedef _Bool bool;
21 +#endif
22  
23  #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
24         #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
25 -- 
26 1.7.10.4
27