Print this page
ioctl & FIONREAD need more includes on Solarish systems.

Split Close
Expand all
Collapse all
          --- old/bin/echo.c
          +++ new/bin/echo.c
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9   *
  10   10   * or in the "license" file accompanying this file. This file is distributed
  11   11   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12   12   * express or implied. See the License for the specific language governing
  13   13   * permissions and limitations under the License.
  14   14   */
  15   15  
  16   16  #include <sys/types.h>
  17   17  #include <sys/socket.h>
  18   18  #include <sys/ioctl.h>
       19 +#include <sys/filio.h>
  19   20  #include <sys/poll.h>
  20   21  #include <netdb.h>
  21   22  
  22   23  #include <stdlib.h>
  23   24  #include <unistd.h>
  24   25  #include <string.h>
       26 +#include <stropts.h>
  25   27  #include <stdio.h>
  26   28  
  27   29  #include <errno.h>
  28   30  
  29   31  #include <s2n.h>
  30   32  
  31   33  int echo(struct s2n_connection *conn, int sockfd)
  32   34  {
  33   35      struct pollfd readers[2];
  34   36  
↓ open down ↓ 115 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX