This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: use socklen_t with accept()
- From: Tom Tromey <tromey at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 30 Mar 2010 10:10:51 -0600
- Subject: Re: [PATCH] sim: use socklen_t with accept()
- References: <1269891513-2771-1-git-send-email-vapier@gentoo.org>
- Reply-to: tromey at redhat dot com
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> The accept() function takes a socklen_t, not an int.
I thought there were still platforms where accept took an int*.
gnulib at least implies it:
http://www.gnu.org/software/gnulib/manual/html_node/accept.html
... but doesn't mention which ones.
Given that both gdb and gdbserver check for socklen_t and typedef it if
it does not exist, I think sim ought to as well.
Tom