Solo4K Support.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / ralink / rt3070-2.5.0.3 / buildfix.patch
1 diff --git a/os/linux/rt_linux.c b/os/linux/rt_linux.c
2 index ac638d8..77a8011 100644
3 --- a/os/linux/rt_linux.c
4 +++ b/os/linux/rt_linux.c
5 @@ -1122,6 +1122,9 @@ static inline void __RtmpOSFSInfoChange(OS_FS_INFO * pOSFSInfo,
6                 pOSFSInfo->fsuid = current->fsuid;
7                 pOSFSInfo->fsgid = current->fsgid;
8                 current->fsuid = current->fsgid = 0;
9 +#elif LINUX_VERSION_CODE > KERNEL_VERSION(3,14,0)
10 +               pOSFSInfo->fsuid = current_fsuid().val;
11 +               pOSFSInfo->fsgid = current_fsgid().val;
12  #else
13                 pOSFSInfo->fsuid = current_fsuid();
14                 pOSFSInfo->fsgid = current_fsgid();
15 diff --git a/sta/sta_cfg.c b/sta/sta_cfg.c
16 index 62cb935..bee10a8 100644
17 --- a/sta/sta_cfg.c
18 +++ b/sta/sta_cfg.c
19 @@ -4938,7 +4938,7 @@ VOID RTMPIoctlShow(
20              wrq->u.data.length = strlen(extra) + 1; /* 1: size of '\0' */
21              break;
22          case SHOW_DRVIER_VERION:
23 -            snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
24 +            snprintf(extra, size, "Driver version-%s\n", STA_DRIVER_VERSION);
25              wrq->u.data.length = strlen(extra) + 1; /* 1: size of '\0' */
26              break;
27  #ifdef DOT11_N_SUPPORT