diff --git a/gcc/ada/cio.c b/gcc/ada/cio.c
index 8e4c7cba596b412ee29ebcb5e2fb35fb9b85b44d..4b4a8070282c4d82947021d6f24c6b45abf72b7f 100644
--- a/gcc/ada/cio.c
+++ b/gcc/ada/cio.c
@@ -6,7 +6,7 @@
  *                                                                          *
  *                          C Implementation File                           *
  *                                                                          *
- *          Copyright (C) 1992-2003 Free Software Foundation, Inc.          *
+ *          Copyright (C) 1992-2005 Free Software Foundation, Inc.          *
  *                                                                          *
  * GNAT is free software;  you can  redistribute it  and/or modify it under *
  * terms of the  GNU General Public License as published  by the Free Soft- *
@@ -51,6 +51,11 @@
 #undef stdout
 #endif
 
+#ifdef VTHREADS
+#undef putchar
+#undef getchar
+#endif
+
 int
 get_char (void)
 {