2010-08-26 18:22:58 +00:00
|
|
|
dnl #
|
|
|
|
dnl # 2.6.28 API change,
|
|
|
|
dnl # check if fmode_t typedef is defined
|
|
|
|
dnl #
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_FMODE_T], [
|
|
|
|
ZFS_LINUX_TEST_SRC([type_fmode_t], [
|
2010-08-26 18:22:58 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
],[
|
2011-04-19 17:02:21 +00:00
|
|
|
fmode_t *ptr __attribute__ ((unused));
|
2019-10-01 19:50:34 +00: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 18:22:58 +00:00
|
|
|
AC_MSG_RESULT([yes])
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFINE(HAVE_FMODE_T, 1, [kernel defines fmode_t])
|
2010-08-26 18:22:58 +00:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
])
|
|
|
|
])
|