ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU

Recent BSDs declare these functions, too.
This commit is contained in:
Florian Weimer 2017-10-30 13:59:59 +01:00
parent dadf23f06c
commit 68fe16dd32
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-10-30 Florian Weimer <fweimer@redhat.com>
* string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
just __USE_GNU.
2017-10-30 Florian Weimer <fweimer@redhat.com> 2017-10-30 Florian Weimer <fweimer@redhat.com>
* posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c. * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.

View File

@ -106,7 +106,7 @@ extern int ffs (int __i) __THROW __attribute_const__;
/* The following two functions are non-standard but necessary for non-32 bit /* The following two functions are non-standard but necessary for non-32 bit
platforms. */ platforms. */
# ifdef __USE_GNU # ifdef __USE_MISC
extern int ffsl (long int __l) __THROW __attribute_const__; extern int ffsl (long int __l) __THROW __attribute_const__;
__extension__ extern int ffsll (long long int __ll) __extension__ extern int ffsll (long long int __ll)
__THROW __attribute_const__; __THROW __attribute_const__;