1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-05-10 19:14:57 +02:00

fix: Define terminal includes

This commit is contained in:
Sirius Bakke
2018-05-13 18:42:43 +02:00
parent bb7a0c7f46
commit f400d3140c

View File

@@ -42,16 +42,15 @@
#include <sys/select.h>
#include <signal.h>
#ifdef HAVE_PTY_H
#if defined(__linux__)
#include <pty.h>
#endif
#ifdef HAVE_LIBUTIL_H
#define HAVE_FORKPTY
#elif defined(__FreeBSD__)
#include <libutil.h>
#endif
#ifdef HAVE_UTIL_H
#define HAVE_FORKPTY
#elif defined(__unix__) || defined(__APPLE__) && defined(__MACH__)
#include <util.h>
#define HAVE_FORKPTY
#endif
#include <errno.h>
@@ -68,7 +67,7 @@ static int ttysavefd = -1;
static pid_t pid = 0;
#ifndef HAVE_CFMAKERAW
#ifdef _WIN32
static inline void cfmakeraw(struct termios *termios_p)
{
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);