Skip to content

Commit

Permalink
Net: Fix build on pre-4.10 kernels such as RHEL7 without recent updates
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Sep 23, 2024
1 parent 616d0dd commit c42ef55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
#include <linux/inet.h>

#include <linux/time.h>
#include <linux/sched/clock.h> /* for local_clock() */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
#include <linux/sched/clock.h> /* for local_clock(), was in sched.h before */
#endif

#include <linux/mutex.h>
#include <linux/workqueue.h>
Expand Down

0 comments on commit c42ef55

Please sign in to comment.