summaryrefslogtreecommitdiff
path: root/libssp/ssp.c
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-02 03:23:39 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-02 03:23:39 +0000
commit1070c6bdb7ca6c080087dcc9943389a5cf4dc858 (patch)
tree340f5d061d4f98947519fbbcad4e64df52f76981 /libssp/ssp.c
parentd8acda95a8a5c5d93dbc4d89c2d4ecaf11f1819a (diff)
downloadgcc-1070c6bdb7ca6c080087dcc9943389a5cf4dc858.tar.gz
* ssp.c (_PATH_TTY): Define as "CONOUT$" for _WIN32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libssp/ssp.c')
-rw-r--r--libssp/ssp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libssp/ssp.c b/libssp/ssp.c
index 9576be445b2..99c5f38ce18 100644
--- a/libssp/ssp.c
+++ b/libssp/ssp.c
@@ -50,8 +50,14 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
# include <paths.h>
#endif
#ifndef _PATH_TTY
+/* Native win32 apps don't know about /dev/tty but can print directly
+ to the console using "CONOUT$" */
+#if defined (_WIN32) && !defined (__CYGWIN__)
+# define _PATH_TTY "CONOUT$"
+#else
# define _PATH_TTY "/dev/tty"
#endif
+#endif
#ifdef HAVE_SYSLOG_H
# include <syslog.h>
#endif