X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Ftextclient.c;h=f0d7fe898d65f82877ad862db9aeba4b7c4c0d2d;hp=abb6f1191267a51089d857ea58e93af73752a2a3;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/utils/textclient.c b/utils/textclient.c index abb6f119..f0d7fe89 100644 --- a/utils/textclient.c +++ b/utils/textclient.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2012-2014 Jamie Zawinski +/* xscreensaver, Copyright (c) 2012-2016 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -16,11 +16,13 @@ * usePty: bool Whether to run the command interactively. * metaSendsESC: bool Whether to send Alt-x as ESC x in pty-mode. * swapBSDEL: bool Swap Backspace and Delete in pty-mode. + * + * On iOS and Android, textclient-mobile.c is used instead. */ #include "utils.h" -#ifndef USE_IPHONE /* whole file -- see OSX/iostextclient.m */ +#if !defined(USE_IPHONE) && !defined(HAVE_ANDROID) /* whole file */ #include "textclient.h" #include "resources.h" @@ -50,6 +52,9 @@ # ifdef HAVE_UTIL_H # include # endif +# ifdef HAVE_SYS_TERMIOS_H +# include +# endif #endif /* HAVE_FORKPTY */ #undef DEBUG