This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch]: Fix build for GO32 and WIN32 targets
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 21 Jan 2010 15:12:35 +0100
- Subject: [patch]: Fix build for GO32 and WIN32 targets
Hello,
the function check_syscall in file inflow.c is static, but isn't used
for GO32 and _WIN32 targets. So this leads to "defined but not used"
warning and breaks build. Patch fix this
2010-01-21 Kai Tietz <kai.tietz@onevision.com>
* inflow.c (check_syscall): Guard by #if clause for GO32 and WIN32 targets.
Tested for i686-pc-cygwin, x86_64-w64-mingw32, and i686-pc-mingw32. Ok
for apply?
Regards,
Kai
Index: inflow.c
===================================================================
RCS file: /cvs/src/src/gdb/inflow.c,v
retrieving revision 1.56
diff -u -r1.56 inflow.c
--- inflow.c 19 Jan 2010 09:39:12 -0000 1.56
+++ inflow.c 21 Jan 2010 14:11:55 -0000
@@ -633,7 +633,7 @@
inferior_thisrun_terminal = ttyname;
}
-
+#if !defined(__GO32__) && !defined(_WIN32)
/* If RESULT, assumed to be the return value from a system call, is
negative, print the error message indicated by errno and exit.
MSG should identify the operation that failed. */
@@ -646,6 +646,7 @@
_exit (1);
}
}
+#endif
void
new_tty (void)
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination