From 7c612116b71e6317adabd41b54c51382b8509f97 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 16 May 2013 15:43:50 -0500 Subject: [PATCH] rtl8188eu: Make build more robust against presence of stale include/linux/version.h Signed-off-by: Larry Finger --- include/osdep_service.h | 2 +- os_dep/os_intfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osdep_service.h b/include/osdep_service.h index 0335f42..0606b34 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -1413,7 +1413,7 @@ __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 allow_signal(SIGTERM); diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index 4763e31..9b34096 100644 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -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) {