components/bash/patches/solaris-011.input_avail.c.patch
author Enrico Perla <enrico.perla@oracle.com>
Fri, 04 Nov 2016 05:32:50 -0700
changeset 7245 934578b959f0
parent 5518 c47fe0edc204
permissions -rw-r--r--
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk 23118364 Enable ADIHEAP on security sensitive binaries 23118359 Build openssh as PIE

# bash itself needs to include <sys/filio.h> (FIONREAD) on Solaris.
# Solaris-specific patch.
# Not for upstream.
--- lib/sh/input_avail.c	2009-04-19 10:01:14.000000000 -0700
+++ lib/sh/input_avail.c	2010-09-01 10:47:30.418016819 -0700
@@ -45,6 +45,10 @@
 #  include <sys/ioctl.h>
 #endif
 
+#if defined(SOLARIS)
+#  include <sys/filio.h> /* Solaris FIONREAD */
+#endif
+
 #include <stdio.h>
 #include <errno.h>