You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
504 B
18 lines
504 B
dnl SPDX-License-Identifier: GPL-2.0-or-later
|
|
dnl Copyright (c) Linux Test Project, 2014
|
|
|
|
AC_DEFUN([LTP_CHECK_CLONE_SUPPORTS_7_ARGS],[
|
|
AH_TEMPLATE(CLONE_SUPPORTS_7_ARGS,
|
|
[Define to 1 if clone() supports 7 arguments.])
|
|
AC_MSG_CHECKING([if clone() supports 7 args])
|
|
AC_TRY_LINK([#define _GNU_SOURCE
|
|
#include <sched.h>
|
|
#include <stdlib.h>],
|
|
[
|
|
#ifndef __ia64__
|
|
clone(NULL, NULL, 0, NULL, NULL, NULL, NULL);
|
|
#endif
|
|
],
|
|
AC_DEFINE(CLONE_SUPPORTS_7_ARGS) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
|
|
])
|