]> git.eshelyaron.com Git - emacs.git/commit
configure.ac: Fix FIONREAD check with gcc-14 on Solaris
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Wed, 23 Oct 2024 13:41:08 +0000 (15:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 05:06:51 +0000 (07:06 +0200)
commitdce6957d863500b2e9d6912353c3c9fa0dc7485a
treecbba36fc9b3f7c834621f51ebe8b3b15da912d37
parent5447d4428be11ecd4979a6ce8b679e20c7865de0
configure.ac: Fix FIONREAD check with gcc-14 on Solaris

Before this fix, it would fail to build with gcc-14 with the error:
conftest.c: In function 'main':
conftest.c:265:11: error: implicit declaration of function 'ioctl'
 [-Wimplicit-function-declaration]
  265 | int foo = ioctl (0, FIONREAD, &foo);
      |           ^~~~~

Solaris documents ioctl() as being defined in <unistd.h>.

* configure.ac: Fix FIONREAD check with gcc-14 on Solaris.
Ref:
https://lists.gnu.org/r/emacs-devel/2024-10/msg00195.html

Copyright-paperwork-exempt: yes
(cherry picked from commit 5e5689a2a40cd16d7593a0c7ddea5511adc3bf22)
configure.ac