+2001-07-11 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdbserver/remote-utils.c (remote_open): Only
+ check for F_SETOWN if we had F_SETFL and FASYNC.
+
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
#if defined(F_SETFL) && defined (FASYNC)
save_fcntl_flags = fcntl (remote_desc, F_GETFL, 0);
fcntl (remote_desc, F_SETFL, save_fcntl_flags | FASYNC);
-#endif
#if defined (F_SETOWN)
fcntl (remote_desc, F_SETOWN, getpid ());
+#endif
#endif
disable_async_io ();
fprintf (stderr, "Remote debugging using %s\n", name);