summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-10-29 02:22:19 +0200
committerBruno Haible <bruno@clisp.org>2017-10-29 02:22:19 +0200
commit0469a4539552c2d81dff0377bbffc133352f7a3e (patch)
tree495e88e69d5703abf565ba5c9cb95ab5c07e67cb /m4
parent9b41ec9be365ebe3065d64ddb4e91f61bd84dc72 (diff)
downloadgnulib-0469a4539552c2d81dff0377bbffc133352f7a3e.tar.gz
ioctl: Override non-POSIX declaration on Haiku.
* m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>. * lib/sys_ioctl.in.h: Add comment about Haiku. * doc/posix-functions/ioctl.texi: Mention Haiku problem. * doc/glibc-headers/sys_ioctl.texi: Likewise.
Diffstat (limited to 'm4')
-rw-r--r--m4/ioctl.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ioctl.m4 b/m4/ioctl.m4
index 30209dd646..57ca2a32ac 100644
--- a/m4/ioctl.m4
+++ b/m4/ioctl.m4
@@ -1,4 +1,4 @@
-# ioctl.m4 serial 4
+# ioctl.m4 serial 5
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -23,7 +23,10 @@ AC_DEFUN([gl_FUNC_IOCTL],
[gl_cv_func_ioctl_posix_signature],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- [[#include <sys/ioctl.h>]],
+ [[#include <sys/ioctl.h>
+ /* On some platforms, ioctl() is declared in <unistd.h>. */
+ #include <unistd.h>
+ ]],
[[extern
#ifdef __cplusplus
"C"