From e46c8e90ef59b098a2753094dfb15c27b31008c3 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 15 Dec 2008 10:34:33 -0800 Subject: [PATCH] config/user.m4 --- config/user.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/user.m4 b/config/user.m4 index 11187d422e..57f2b28510 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -2,3 +2,21 @@ dnl # dnl # Default ZFS user configuration dnl # AC_DEFUN([ZFS_AC_CONFIG_USER], []) + + + + + +AC_DEFINE(ZFS_AC_CONFIG_USER_IOCTL], [ + AC_EGREP_HEADER(ioctl, unistd.h, + [AC_DEFINE([HAVE_IOCTL_IN_UNISTD_H], 1, + [Define to 1 if ioctl() is defined in header])]) + + AC_EGREP_HEADER(ioctl, sys/ioctl.h, + [AC_DEFINE([HAVE_IOCTL_IN_SYS_IOCTL_H], 1, + [Define to 1 if ioctl() is defined in header])]) + + AC_EGREP_HEADER(ioctl, stropts.h, + [AC_DEFINE([HAVE_IOCTL_IN_STROPTS_H], 1, + [Define to 1 if ioctl() is defined in header])]) +])