From 1674f39266dda7929fc21e842554dec9ad43e5ea Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Fri, 10 Sep 2010 18:24:47 +1000 Subject: win32: add termios stub so that it builds --- include/mingw.h | 1 + win32/Kbuild | 1 + win32/termios.c | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 win32/termios.c diff --git a/include/mingw.h b/include/mingw.h index a97c347e1..0fbc8f528 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -293,6 +293,7 @@ NOIMPL(setuid,uid_t gid UNUSED_PARAM); unsigned int sleep(unsigned int seconds); NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); static inline void sync(void) {} +NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); int mingw_unlink(const char *pathname); NOIMPL(vfork,void); diff --git a/win32/Kbuild b/win32/Kbuild index dc3b24376..a4a7f32d4 100644 --- a/win32/Kbuild +++ b/win32/Kbuild @@ -9,4 +9,5 @@ lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o lib-$(CONFIG_PLATFORM_MINGW32) += process.o lib-$(CONFIG_PLATFORM_MINGW32) += regex.o +lib-$(CONFIG_PLATFORM_MINGW32) += termios.o lib-$(CONFIG_PLATFORM_MINGW32) += winansi.o diff --git a/win32/termios.c b/win32/termios.c new file mode 100644 index 000000000..0aba48546 --- /dev/null +++ b/win32/termios.c @@ -0,0 +1,11 @@ +#include "busybox.h" + +int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM) +{ + return -1; +} + +int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM) +{ + return -1; +} -- cgit v1.2.3-55-g6feb