mirror of
https://github.com/darlinghq/darling-newlkm.git
synced 2024-12-04 18:06:43 +00:00
parent
a1b6f512aa
commit
d3169a4e30
@ -78,7 +78,7 @@ typedef task_t proc_t;
|
||||
#define pthhashhead list_head
|
||||
|
||||
#define nanoseconds_to_absolutetime(ns, to) *to = ns
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0)
|
||||
#define microuptime(t) ktime_get_ts64(t)
|
||||
#else
|
||||
#define microuptime(t) ktime_get_ts(t)
|
||||
|
@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// include/linux/time.h
|
||||
#define timeval linux_timeval
|
||||
#define timezone linux_timezone
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0)
|
||||
#define timespec64 linux_timespec
|
||||
#else
|
||||
#define timespec linux_timespec
|
||||
|
Loading…
Reference in New Issue
Block a user