forget about device fd, we don't need it
[arla.git] / cf / bsd-func-suser.m4
blob143cd5abde6803f7e2443a0ba4dd109b0254c327
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_BSD_FUNC_SUSER], [
6 AC_CACHE_CHECK(if suser takes two arguments,
7 ac_cv_func_suser_two_args,
8 AC_TRY_COMPILE_KERNEL([
9 #ifdef HAVE_SYS_CDEFS_H
10 #include <sys/cdefs.h>
11 #endif
12 #include <sys/types.h>
13 #include <sys/param.h>
14 #include <sys/time.h>
15 #include <sys/proc.h>
16 #include <sys/systm.h>
17 ], [suser(NULL, NULL)],
18 ac_cv_func_suser_two_args=yes,
19 ac_cv_func_suser_two_args=no))
20 if test "$ac_cv_func_suser_two_args" = yes; then
21         AC_DEFINE(HAVE_TWO_ARGUMENT_SUSER, 1,
22         [define if suser takes two arguments])