Added forkpty() and cfmakeraw() fallback implementations if they don't exist.

Signed-off-by: Timo Sirainen <tss@iki.fi>
This commit is contained in:
Timo Sirainen
2012-08-11 23:12:04 +03:00
committed by Keith Winstein
parent cc0542dfe1
commit 0c5307f345
11 changed files with 242 additions and 15 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXF
AM_LDFLAGS = $(HARDEN_LDFLAGS)
LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm $(TINFO_LIBS) $(protobuf_LIBS) $(OPENSSL_LIBS)
mosh_server_LDADD = $(LDADD) -lutil
mosh_server_LDADD = $(LDADD) $(LIBUTIL)
bin_PROGRAMS =
+9 -8
View File
@@ -58,14 +58,6 @@
#include <paths.h>
#endif
#include "completeterminal.h"
#include "swrite.h"
#include "user.h"
#include "fatal_assert.h"
#include "locale_utils.h"
#include "select.h"
#include "timestamp.h"
#if HAVE_PTY_H
#include <pty.h>
#elif HAVE_UTIL_H
@@ -76,6 +68,15 @@
#include <libutil.h>
#endif
#include "completeterminal.h"
#include "swrite.h"
#include "user.h"
#include "fatal_assert.h"
#include "locale_utils.h"
#include "pty_compat.h"
#include "select.h"
#include "timestamp.h"
#ifndef _PATH_BSHELL
#define _PATH_BSHELL "/bin/sh"
#endif
+1
View File
@@ -56,6 +56,7 @@
#include "user.h"
#include "fatal_assert.h"
#include "locale_utils.h"
#include "pty_compat.h"
#include "select.h"
#include "timestamp.h"