xref: /aosp_15_r20/external/ltp/m4/ltp-fcntl.m4 (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1dnl SPDX-License-Identifier: GPL-2.0-or-later
2dnl Copyright (c) 2014 Fujitsu Ltd.
3dnl Author: Xiaoguang Wang <[email protected]>
4
5AC_DEFUN([LTP_CHECK_SYSCALL_FCNTL],[
6	AC_MSG_CHECKING([for fcntl f_owner_ex])
7	AC_COMPILE_IFELSE([AC_LANG_SOURCE([
8#define _GNU_SOURCE
9#include <fcntl.h>
10int main(void) {
11	struct f_owner_ex tst_own_ex;
12	return 0;
13}])],[has_f_owner_ex="yes"])
14
15if test "x$has_f_owner_ex" = xyes; then
16	AC_DEFINE(HAVE_STRUCT_F_OWNER_EX,1,[Define to 1 if you have struct f_owner_ex])
17	AC_MSG_RESULT(yes)
18else
19	AC_MSG_RESULT(no)
20fi
21])
22