Originally committed as revision 9597 to svn://svn.ffmpeg.org/ffmpeg/trunk
arpa_inet_h
byteswap_h
cmov
arpa_inet_h
byteswap_h
cmov
dcbzl
dev_bktr_ioctl_bt848_h
dev_bktr_ioctl_meteor_h
dcbzl
dev_bktr_ioctl_bt848_h
dev_bktr_ioctl_meteor_h
soundcard_h
sys_poll_h
sys_soundcard_h
soundcard_h
sys_poll_h
sys_soundcard_h
+check_header termios.h
+check_header conio.h
+
check_header arpa/inet.h
check_func inet_aton
check_header arpa/inet.h
check_func inet_aton
#include "fifo.h"
#include "avstring.h"
#include "fifo.h"
#include "avstring.h"
+#if defined(HAVE_CONIO_H)
+#elif defined(HAVE_TERMIOS_H)
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
int nb_streams; /* nb streams we are aware of */
} AVInputFile;
int nb_streams; /* nb streams we are aware of */
} AVInputFile;
/* init terminal so that we can grab keys */
static struct termios oldtty;
/* init terminal so that we can grab keys */
static struct termios oldtty;
static void term_exit(void)
{
static void term_exit(void)
{
tcsetattr (0, TCSANOW, &oldtty);
#endif
}
tcsetattr (0, TCSANOW, &oldtty);
#endif
}
static void term_init(void)
{
static void term_init(void)
{
struct termios tty;
tcgetattr (0, &tty);
struct termios tty;
tcgetattr (0, &tty);
/* read a key without blocking */
static int read_key(void)
{
/* read a key without blocking */
static int read_key(void)
{
+#if defined(HAVE_CONIO_H)
if(kbhit())
return(getch());
if(kbhit())
return(getch());
+#elif defined(HAVE_TERMIOS_H)
int n = 1;
unsigned char ch;
#ifndef CONFIG_BEOS_NETSERVER
int n = 1;
unsigned char ch;
#ifndef CONFIG_BEOS_NETSERVER