|
@@ -13,6 +13,7 @@
|
|
#include <unistd.h>
|
|
#include <unistd.h>
|
|
#include <sys/errno.h>
|
|
#include <sys/errno.h>
|
|
#include "termios.h"
|
|
#include "termios.h"
|
|
|
|
+#include <rtthread.h>
|
|
|
|
|
|
int tcgetattr(int fd, struct termios *tio)
|
|
int tcgetattr(int fd, struct termios *tio)
|
|
{
|
|
{
|
|
@@ -95,12 +96,12 @@ int tcsendbreak(int fd, int dur)
|
|
|
|
|
|
int tcflush(int fd, int queue)
|
|
int tcflush(int fd, int queue)
|
|
{
|
|
{
|
|
- return ioctl(fd, TCFLSH, (void*)queue);
|
|
|
|
|
|
+ return ioctl(fd, TCFLSH, (void*)(rt_ubase_t)queue);
|
|
}
|
|
}
|
|
|
|
|
|
int tcflow(int fd, int action)
|
|
int tcflow(int fd, int action)
|
|
{
|
|
{
|
|
- return ioctl(fd, TCXONC, (void*)action);
|
|
|
|
|
|
+ return ioctl(fd, TCXONC, (void*)(rt_ubase_t)action);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|