X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdbsupport%2Fscoped_fd.h;h=3059f89141d1578ada301bafa453f6f6650f20a3;hb=31e43bfffbc585a59d07f21f191317a714476e38;hp=f40ce8b0b50d227b054bdef1f87ad7401a593f62;hpb=01027315f54048dbaf03ac37455c2528c72a6d9b;p=binutils-gdb.git diff --git a/gdbsupport/scoped_fd.h b/gdbsupport/scoped_fd.h index f40ce8b0b50..3059f89141d 100644 --- a/gdbsupport/scoped_fd.h +++ b/gdbsupport/scoped_fd.h @@ -1,6 +1,6 @@ /* scoped_fd, automatically close a file descriptor - Copyright (C) 2018-2020 Free Software Foundation, Inc. + Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is part of GDB. @@ -21,7 +21,7 @@ #define COMMON_SCOPED_FD_H #include -#include "filestuff.h" +#include "gdb_file.h" /* A smart-pointer-like class to automatically close a file descriptor. */ @@ -30,7 +30,7 @@ class scoped_fd public: explicit scoped_fd (int fd = -1) noexcept : m_fd (fd) {} - scoped_fd (scoped_fd &&other) + scoped_fd (scoped_fd &&other) noexcept : m_fd (other.m_fd) { other.m_fd = -1;