summaryrefslogtreecommitdiff
path: root/wince/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'wince/io.c')
-rw-r--r--wince/io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wince/io.c b/wince/io.c
index 3d3f1bed77..4d2f21d604 100644
--- a/wince/io.c
+++ b/wince/io.c
@@ -183,12 +183,20 @@ int _chmod(const char *path, int mode)
return 0;
}
+/* WinCE doesn't have dup and dup2. */
+/* so, we cannot use missing/dup2.c. */
int _dup( int handle )
{
errno = EBADF;
return -1;
}
+int dup2( int handle1, int handle2 )
+{
+ errno = EBADF;
+ return -1;
+}
+
int _isatty(int fd)
{
if( fd==(int)_fileno(stdin) ||