vp-build/srcpkgs/gcc/patches/musl-no-termio_h.patch

14 lines
538 B
Diff

--- gcc/ada/terminals.c 2018-01-11 09:55:25.000000000 +0100
+++ gcc/ada/terminals.c 2018-10-29 12:53:43.278136221 +0100
@@ -1110,8 +1110,8 @@
/* 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__)
+#if defined (__GLIBC__) && !defined (__hpux__) && !defined (BSD) \
+ && !defined (__APPLE__) && !defined (__rtems__) && !defined (__QNXNTO__)
# include <termio.h>
#endif