summaryrefslogtreecommitdiff
path: root/gcc/ada/expect.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:41:58 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:41:58 +0000
commit2359306a95a08a4b7c34d1d9fc0ab34c1b4ed5d3 (patch)
tree4e574c2bb77d20de915d980ed78369f3b541db69 /gcc/ada/expect.c
parent9a325a5c3568ca32843610902eccc46857855ce4 (diff)
downloadgcc-2359306a95a08a4b7c34d1d9fc0ab34c1b4ed5d3.tar.gz
2007-09-26 Olivier Hainque <hainque@adacore.com>
* adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around #include <utime.h> and #define GCC_RESOURCE_H before #include <sys/wait.h>. Add more protections in __gnat_translate_vms. * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before #include <sys/wait.h>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/expect.c')
-rw-r--r--gcc/ada/expect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c
index 6d2cf86e322..7503de0b88d 100644
--- a/gcc/ada/expect.c
+++ b/gcc/ada/expect.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 2001-2005, AdaCore *
+ * Copyright (C) 2001-2007, AdaCore *
* *
* 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,10 @@
#endif
#elif defined (__vxworks) && defined (__RTP__)
#include <wait.h>
+#elif defined (__Lynx__)
+/* ??? See comment in adaint.c. */
+#define GCC_RESOURCE_H
+#include <sys/wait.h>
#else
#include <sys/wait.h>
#endif