Correct version check

darlinghq/darling#755
This commit is contained in:
Andrew Hyatt 2020-04-18 10:29:49 -04:00
parent a1b6f512aa
commit d3169a4e30
No known key found for this signature in database
GPG Key ID: 5456D0F696719C24
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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