From: Tom Tromey Date: Wed, 1 Jul 2026 18:39:31 +0000 (-0600) Subject: Don't use F_SETFL in gdbreplay X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c24ffb53cd359a329e264b4c8f47c3bf1f2b094;p=thirdparty%2Fbinutils-gdb.git Don't use F_SETFL in gdbreplay There's no need to call fcntl with F_SETFL in gdbreplay, as gdbreplay does not use or need SIGIO. Approved-By: Simon Marchi --- diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc index 4426dc316ec..f4626ceadb8 100644 --- a/gdbserver/gdbreplay.cc +++ b/gdbserver/gdbreplay.cc @@ -32,9 +32,6 @@ #if HAVE_SIGNAL_H #include #endif -#if HAVE_FCNTL_H -#include -#endif #include #ifdef HAVE_NETINET_IN_H #include @@ -255,9 +252,6 @@ remote_open (const char *name) #endif } -#if defined(F_SETFL) && defined (FASYNC) - fcntl (remote_desc_in, F_SETFL, FASYNC); -#endif remote_desc_out = remote_desc_in; }