aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-28 20:06:59 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-28 20:06:59 +0000
commit60774f9f72edf3b70540892f7a5936dd4f93554b (patch)
treeb10afc76577bebb1a2144127d81b88e0dee977fd
parent0693f92cf26fa96e2f3db1b8cfd2445ed52bfa3d (diff)
downloadgdb-60774f9f72edf3b70540892f7a5936dd4f93554b.zip
gdb-60774f9f72edf3b70540892f7a5936dd4f93554b.tar.gz
gdb-60774f9f72edf3b70540892f7a5936dd4f93554b.tar.bz2
* include/libiberty.h (ffs): Declare.
-rw-r--r--ChangeLog.csl4
-rw-r--r--include/libiberty.h7
2 files changed, 11 insertions, 0 deletions
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 <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 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(). */