aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Coopersmith2024-10-23 15:41:08 +0200
committerStefan Kangas2024-10-23 15:48:17 +0200
commit5e5689a2a40cd16d7593a0c7ddea5511adc3bf22 (patch)
treeefdc8e74b95050cb027cc37ce0ac1b7d19e9c89d
parentc037b253975da883594f10f48e0be53d81a32756 (diff)
downloademacs-5e5689a2a40cd16d7593a0c7ddea5511adc3bf22.tar.gz
emacs-5e5689a2a40cd16d7593a0c7ddea5511adc3bf22.zip
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
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8a5ba7db3d1..947c2827b8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7117,6 +7117,9 @@ AC_CACHE_CHECK([for usable FIONREAD], [emacs_cv_usable_FIONREAD],
7117 #ifdef USG5_4 7117 #ifdef USG5_4
7118 # include <sys/filio.h> 7118 # include <sys/filio.h>
7119 #endif 7119 #endif
7120 #ifdef HAVE_UNISTD_H
7121 # include <unistd.h> /* defines ioctl() on Solaris */
7122 #endif
7120 ]], 7123 ]],
7121 [[int foo = ioctl (0, FIONREAD, &foo);]])], 7124 [[int foo = ioctl (0, FIONREAD, &foo);]])],
7122 [emacs_cv_usable_FIONREAD=yes], 7125 [emacs_cv_usable_FIONREAD=yes],