diff mbox series

[Ada] Fix PR ada/81103

Message ID 3602177.BWaJIyuXQG@polaris
State New
Headers show
Series [Ada] Fix PR ada/81103 | expand

Commit Message

Eric Botcazou Sept. 13, 2018, 5:05 p.m. UTC
This removes the inclusion of the unused termio.h from terminals.c.

Tested on x86_64-suse-linux, applied on the mainline.


2018-09-13  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/81103
	* terminals.c: Do not include termio.h.
diff mbox series

Patch

Index: terminals.c
===================================================================
--- terminals.c	(revision 264202)
+++ terminals.c	(working copy)
@@ -1107,14 +1107,6 @@  __gnat_setup_winsize (void *desc, int ro
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
-
-/* On some system termio is either absent or including it will disable termios
-   (HP-UX) */
-#if !defined (__hpux__) && !defined (BSD) && !defined (__APPLE__) \
-  && !defined (__rtems__) && !defined (__QNXNTO__)
-#   include <termio.h>
-#endif
-
 #include <sys/ioctl.h>
 #include <termios.h>
 #include <fcntl.h>
@@ -1130,7 +1122,6 @@  __gnat_setup_winsize (void *desc, int ro
 #   include <sys/signal.h>
 #endif
 #if defined (__hpux__)
-#   include <sys/termio.h>
 #   include <sys/stropts.h>
 #endif