From 60774f9f72edf3b70540892f7a5936dd4f93554b Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 28 Mar 2005 20:06:59 +0000 Subject: * include/libiberty.h (ffs): Declare. --- ChangeLog.csl | 4 ++++ include/libiberty.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog.csl b/ChangeLog.csl index 8c71032..c3a862b 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,5 +1,9 @@ 2005-03-28 Mark Mitchell + * include/libiberty.h (ffs): Declare. + +2005-03-28 Mark Mitchell + * gdb/ser-tcp.c (net_read_prim): Use recv unconditionally. (net_write_prim): Use send unconditionally. * gdb/configure.ac: Do not check for send and recv. diff --git a/include/libiberty.h b/include/libiberty.h index 49a2fb6..d068d3d 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -140,6 +140,13 @@ extern char *libiberty_concat_ptr; extern int fdmatch PARAMS ((int fd1, int fd2)); +/* Return the position of the first bit set in the argument. */ +/* Prototypes vary from system to system, so we only provide a + prototype on systems where we know that we need it. */ +#ifdef __MINGW32__ +extern int ffs(int); +#endif + /* Get the working directory. The result is cached, so don't call chdir() between calls to getpwd(). */ -- cgit v1.1