2010-08-26 22:22:58 +04:00
|
|
|
dnl #
|
|
|
|
dnl # 2.6.28 API change,
|
|
|
|
dnl # check if fmode_t typedef is defined
|
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_FMODE_T], [
|
|
|
|
ZFS_LINUX_TEST_SRC([type_fmode_t], [
|
2010-08-26 22:22:58 +04:00
|
|
|
#include <linux/types.h>
|
|
|
|
],[
|
2011-04-19 21:02:21 +04:00
|
|
|
fmode_t *ptr __attribute__ ((unused));
|
2019-10-01 22:50:34 +03:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_FMODE_T], [
|
|
|
|
AC_MSG_CHECKING([whether kernel defines fmode_t])
|
|
|
|
ZFS_LINUX_TEST_RESULT([type_fmode_t], [
|
2010-08-26 22:22:58 +04:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
],[
|
2019-11-12 19:59:06 +03:00
|
|
|
ZFS_LINUX_TEST_ERROR([type_fmode_t])
|
2010-08-26 22:22:58 +04:00
|
|
|
])
|
|
|
|
])
|