summaryrefslogtreecommitdiff
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
commit16d6343fcbd64bb38ac49ec1336b30db6035d315 (patch)
tree5b9115e81410cb648314beb4ce6279ffeb9cd8d0
parent3a85b5da6046cab9cdd12e2639eb2f4a62b4668b (diff)
downloadgdb-16d6343fcbd64bb38ac49ec1336b30db6035d315.tar.gz
* 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 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(). */