this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #214 from gcasa/master

Fix issue with compilation on Debian Jessie

authored by

Luboš Doležel and committed by
GitHub
b81754ac 1aa8d9e6

+5 -1
+5 -1
src/lkm/servers/thread_act.c
··· 24 24 #include "stub.h" 25 25 #include <linux/sched.h> 26 26 #include <linux/uaccess.h> 27 + #include <linux/version.h> 27 28 #include "thread_act.h" 28 29 29 30 struct thread_private ··· 259 260 data.dispatch_qaddr = 0; 260 261 261 262 data.thread_id = data.thread_handle; 263 + #if LINUX_VERSION_CODE <= KERNEL_VERSION(3,16,0) 262 264 data.thread_id |= (ltask->start_time & 0xffffffff) << 32; 263 - 265 + #else 266 + data.thread_id |= (ltask->start_time.tv_sec & 0xffffffff) << 32; 267 + #endif 264 268 memcpy(thread_info_out, &data, sizeof(data)); 265 269 *thread_info_outCnt = THREAD_IDENTIFIER_INFO_COUNT; 266 270 }