diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 18:24:47 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:45:01 +1000 |
commit | 1674f39266dda7929fc21e842554dec9ad43e5ea (patch) | |
tree | 53d3d7ddab49bce77de1df642f3b7490f30de630 | |
parent | 803ebf09045d48675938ab60c9721f7f22b97a06 (diff) | |
download | busybox-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.h | 1 | ||||
-rw-r--r-- | win32/Kbuild | 1 | ||||
-rw-r--r-- | win32/termios.c | 11 |
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); | |||
293 | unsigned int sleep(unsigned int seconds); | 293 | unsigned int sleep(unsigned int seconds); |
294 | NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); | 294 | NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); |
295 | static inline void sync(void) {} | 295 | static inline void sync(void) {} |
296 | NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); | ||
296 | int mingw_unlink(const char *pathname); | 297 | int mingw_unlink(const char *pathname); |
297 | NOIMPL(vfork,void); | 298 | NOIMPL(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 | |||
9 | lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o | 9 | lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o |
10 | lib-$(CONFIG_PLATFORM_MINGW32) += process.o | 10 | lib-$(CONFIG_PLATFORM_MINGW32) += process.o |
11 | lib-$(CONFIG_PLATFORM_MINGW32) += regex.o | 11 | lib-$(CONFIG_PLATFORM_MINGW32) += regex.o |
12 | lib-$(CONFIG_PLATFORM_MINGW32) += termios.o | ||
12 | lib-$(CONFIG_PLATFORM_MINGW32) += winansi.o | 13 | 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 @@ | |||
1 | #include "busybox.h" | ||
2 | |||
3 | int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM) | ||
4 | { | ||
5 | return -1; | ||
6 | } | ||
7 | |||
8 | int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM) | ||
9 | { | ||
10 | return -1; | ||
11 | } | ||