aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 18:24:47 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:45:01 +1000
commit1674f39266dda7929fc21e842554dec9ad43e5ea (patch)
tree53d3d7ddab49bce77de1df642f3b7490f30de630
parent803ebf09045d48675938ab60c9721f7f22b97a06 (diff)
downloadbusybox-w32-1674f39266dda7929fc21e842554dec9ad43e5ea.tar.gz
busybox-w32-1674f39266dda7929fc21e842554dec9ad43e5ea.tar.bz2
busybox-w32-1674f39266dda7929fc21e842554dec9ad43e5ea.zip
win32: add termios stub so that it builds
-rw-r--r--include/mingw.h1
-rw-r--r--win32/Kbuild1
-rw-r--r--win32/termios.c11
3 files changed, 13 insertions, 0 deletions
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);
293unsigned int sleep(unsigned int seconds); 293unsigned int sleep(unsigned int seconds);
294NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); 294NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM);
295static inline void sync(void) {} 295static inline void sync(void) {}
296NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM);
296int mingw_unlink(const char *pathname); 297int mingw_unlink(const char *pathname);
297NOIMPL(vfork,void); 298NOIMPL(vfork,void);
298 299
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
9lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o 9lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o
10lib-$(CONFIG_PLATFORM_MINGW32) += process.o 10lib-$(CONFIG_PLATFORM_MINGW32) += process.o
11lib-$(CONFIG_PLATFORM_MINGW32) += regex.o 11lib-$(CONFIG_PLATFORM_MINGW32) += regex.o
12lib-$(CONFIG_PLATFORM_MINGW32) += termios.o
12lib-$(CONFIG_PLATFORM_MINGW32) += winansi.o 13lib-$(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 @@
1#include "busybox.h"
2
3int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM)
4{
5 return -1;
6}
7
8int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM)
9{
10 return -1;
11}