File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
include/os/linux/kernel/linux Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,32 @@ AC_DEFUN([ZFS_AC_KERNEL_FPU_HEADER], [
27
27
] ,[
28
28
AC_DEFINE ( HAVE_KERNEL_FPU_API_HEADER , 1 ,
29
29
[ kernel has asm/fpu/api.h] )
30
- AC_MSG_RESULT ( asm/fpu/api.h )
30
+
31
+ ZFS_LINUX_TRY_COMPILE([
32
+ #include <linux/module.h>
33
+ #include <asm/fpu/internal.h>
34
+ ] ,[
35
+ ] ,[
36
+ AC_DEFINE ( HAVE_KERNEL_FPU_INTERNAL_HEADER , 1 ,
37
+ [ kernel has asm/internal/api.h] )
38
+ AC_MSG_RESULT ( [ asm/fpu/api.h asm/fpu/internal.h] )
39
+ ] ,[
40
+ AC_MSG_RESULT ( [ asm/fpu/api.h] )
41
+ ] )
31
42
] ,[
32
- AC_MSG_RESULT ( i387.h )
43
+ AC_MSG_RESULT ( [ i387.h] )
33
44
] )
45
+
34
46
] )
35
47
36
48
AC_DEFUN ( [ ZFS_AC_KERNEL_SRC_FPU] , [
37
49
ZFS_LINUX_TEST_SRC([ kernel_fpu] , [
38
50
#include <linux/types.h>
39
51
#ifdef HAVE_KERNEL_FPU_API_HEADER
40
52
#include <asm/fpu/api.h>
53
+ #ifdef HAVE_KERNEL_FPU_INTERNAL_HEADER
41
54
#include <asm/fpu/internal.h>
55
+ #endif
42
56
#else
43
57
#include <asm/i387.h>
44
58
#endif
@@ -51,7 +65,9 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_FPU], [
51
65
#include <linux/types.h>
52
66
#ifdef HAVE_KERNEL_FPU_API_HEADER
53
67
#include <asm/fpu/api.h>
68
+ #ifdef HAVE_KERNEL_FPU_INTERNAL_HEADER
54
69
#include <asm/fpu/internal.h>
70
+ #endif
55
71
#else
56
72
#include <asm/i387.h>
57
73
#endif
Original file line number Diff line number Diff line change 93
93
94
94
#if defined(HAVE_KERNEL_FPU_API_HEADER )
95
95
#include <asm/fpu/api.h>
96
+ #if defined(HAVE_KERNEL_FPU_INTERNAL_HEADER )
96
97
#include <asm/fpu/internal.h>
98
+ #endif
97
99
#else
98
100
#include <asm/i387.h>
99
101
#endif
You can’t perform that action at this time.
0 commit comments