mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 22:13:41 +00:00
rtl8188eu: Make builds less susceptible to stale include/linux/version.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
dc7c8c0b5d
commit
2121891504
2 changed files with 4 additions and 4 deletions
|
@ -1413,9 +1413,9 @@ __inline static unsigned char _cancel_timer_ex(_timer *ptimer)
|
|||
|
||||
static __inline void thread_enter(char *name)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0))
|
||||
#ifdef daemonize
|
||||
daemonize("%s", name);
|
||||
#endif
|
||||
#endif
|
||||
allow_signal(SIGTERM);
|
||||
}
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ static int rtw_proc_cnt = 0;
|
|||
|
||||
#define RTW_PROC_NAME DRV_NAME
|
||||
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 8, 0))
|
||||
#ifndef create_proc_entry
|
||||
/* dummy routines */
|
||||
void rtw_proc_remove_one(struct net_device *dev)
|
||||
{
|
||||
|
@ -311,7 +311,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
{
|
||||
}
|
||||
|
||||
#else /* LINUX_VERSION_CODE > KERNEL_VERSION(3, 8. 0) */
|
||||
#else /* create_proc_entry not defined */
|
||||
void rtw_proc_init_one(struct net_device *dev)
|
||||
{
|
||||
struct proc_dir_entry *dir_dev = NULL;
|
||||
|
|
Loading…
Reference in a new issue