summaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-07-14 12:17:29 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-07-26 22:26:27 +0100
commit6af79d7b5a21a40c4036541fbfa821f9d1260ebf (patch)
treef0caffbe9ffb5ce74dee03b537294c70dbf2e721 /gdb/windows-nat.c
parent1f75763aa1bfe2f998f4347f0de436092a126980 (diff)
downloadbinutils-gdb-6af79d7b5a21a40c4036541fbfa821f9d1260ebf.tar.gz
Fix Cygwin compilation after target_ops C++ conversion.
After f6ac5f3d "Convert struct target_ops to C++", we need to explicitly use the global namespace when calling ::close() from windows_nat_target methods, as that object has a close() method. gdb/ChangeLog: 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> * windows-nat.c (windows_nat_target::create_inferior): Update to call close() in global namespace.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index e0e422c0f05..aea502638e0 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2681,13 +2681,13 @@ windows_nat_target::create_inferior (const char *exec_file,
if (tty >= 0)
{
- close (tty);
+ ::close (tty);
dup2 (ostdin, 0);
dup2 (ostdout, 1);
dup2 (ostderr, 2);
- close (ostdin);
- close (ostdout);
- close (ostderr);
+ ::close (ostdin);
+ ::close (ostdout);
+ ::close (ostderr);
}
#else /* !__CYGWIN__ */
allargs_len = strlen (allargs);