diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-03-29 01:12:11 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-03-29 01:12:11 +0000 |
commit | 0e694c7cabcf516cbd868288407c425341dd65b9 (patch) | |
tree | 3d503fac8686866d270066ce17497fd7a731e294 /include | |
parent | fb22f08abd19f7cb7cbcad6ef07ab8d069f838be (diff) | |
download | gdb-0e694c7cabcf516cbd868288407c425341dd65b9.tar.gz |
* libiberty.h (ffs): Declare, if necessary.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 6b1b233b7e3..6d73fe80b57 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-03-28 Mark Mitchell <mark@codesourcery.com> + + * libiberty.h (ffs): Declare, if necessary. + 2005-03-27 Gabriel Dos Reis <gdr@integreable-solutions.net> * ternary.h: Don't use PARAMS anymore. diff --git a/include/libiberty.h b/include/libiberty.h index a0642103726..f1d4f464afb 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -138,6 +138,13 @@ extern char *libiberty_concat_ptr; extern int fdmatch (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. */ +#if defined (HAVE_DECL_FFS) && !HAVE_DECL_FFS +extern int ffs(int); +#endif + /* Get the working directory. The result is cached, so don't call chdir() between calls to getpwd(). */ |