1
0
Эх сурвалжийг харах

Merge pull request #167 from linD026/minmax

Improve the compatibility with kernel < v5.10
Jim Huang 2 жил өмнө
parent
commit
422f387ae3
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      examples/procfs3.c

+ 2 - 0
examples/procfs3.c

@@ -8,7 +8,9 @@
 #include <linux/sched.h>
 #include <linux/uaccess.h>
 #include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
 #include <linux/minmax.h>
+#endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
 #define HAVE_PROC_OPS