From: Florian Weimer Date: Mon, 30 Oct 2017 12:59:59 +0000 (+0100) Subject: ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU X-Git-Tag: glibc-2.27~578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fe16dd327c895c08b9ee443b234c49c13b36e9;p=thirdparty%2Fglibc.git ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU Recent BSDs declare these functions, too. --- diff --git a/ChangeLog b/ChangeLog index 48357859f51..a36b0b4a1e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-30 Florian Weimer + + * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not + just __USE_GNU. + 2017-10-30 Florian Weimer * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c. diff --git a/string/strings.h b/string/strings.h index 630b3adc238..27508e31b89 100644 --- a/string/strings.h +++ b/string/strings.h @@ -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 platforms. */ -# ifdef __USE_GNU +# ifdef __USE_MISC extern int ffsl (long int __l) __THROW __attribute_const__; __extension__ extern int ffsll (long long int __ll) __THROW __attribute_const__;