]>
Commit | Line | Data |
---|---|---|
c9c0d073 BB |
1 | dnl # |
2 | dnl # 2.6.28 API change, | |
3 | dnl # check if fmode_t typedef is defined | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_KERNEL_TYPE_FMODE_T], | |
6 | [AC_MSG_CHECKING([whether kernel defines fmode_t]) | |
7 | ZFS_LINUX_TRY_COMPILE([ | |
8 | #include <linux/types.h> | |
9 | ],[ | |
79713039 | 10 | fmode_t *ptr __attribute__ ((unused)); |
c9c0d073 BB |
11 | ],[ |
12 | AC_MSG_RESULT([yes]) | |
13 | AC_DEFINE(HAVE_FMODE_T, 1, | |
14 | [kernel defines fmode_t]) | |
15 | ],[ | |
16 | AC_MSG_RESULT([no]) | |
17 | ]) | |
18 | ]) |