summaryrefslogtreecommitdiff
path: root/m4/ioctl_request.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ioctl_request.m4')
-rw-r--r--m4/ioctl_request.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ioctl_request.m4 b/m4/ioctl_request.m4
index e5ea6d346..c6d12258e 100644
--- a/m4/ioctl_request.m4
+++ b/m4/ioctl_request.m4
@@ -38,10 +38,10 @@ AC_DEFUN([AC_IOCTL_REQUEST], [
ac_cv_ioctl_request,
[for ac_ioctl_request_type in "unsigned long" "int"
do
- AC_TRY_LINK([
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <sys/ioctl.h>
int ioctl(int fd, $ac_ioctl_request_type request, ...);
- ], [], [ac_cv_ioctl_request=$ac_ioctl_request_type])
+ ]], [[]])],[ac_cv_ioctl_request=$ac_ioctl_request_type],[])
done])
if test "x$ac_cv_ioctl_request" = "x"; then