diff options
-rw-r--r-- | ChangeLog.csl | 4 | ||||
-rw-r--r-- | include/libiberty.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 8c710325968..c3a862b090c 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,5 +1,9 @@ 2005-03-28 Mark Mitchell <mark@codesourcery.com> + * include/libiberty.h (ffs): Declare. + +2005-03-28 Mark Mitchell <mark@codesourcery.com> + * 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 49a2fb6fd52..d068d3deb54 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(). */ |