Skip to content

Commit 422f387

Browse files
authored
Merge pull request #167 from linD026/minmax
Improve the compatibility with kernel < v5.10
2 parents c69eff9 + eb2c766 commit 422f387

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/procfs3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#include <linux/sched.h>
99
#include <linux/uaccess.h>
1010
#include <linux/version.h>
11+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
1112
#include <linux/minmax.h>
13+
#endif
1214

1315
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
1416
#define HAVE_PROC_OPS

0 commit comments

Comments
 (0)