]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU
authorFlorian Weimer <fweimer@redhat.com>
Mon, 30 Oct 2017 12:59:59 +0000 (13:59 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 30 Oct 2017 12:59:59 +0000 (13:59 +0100)
Recent BSDs declare these functions, too.

ChangeLog
string/strings.h

index 48357859f51c94536a325662b91ad2fab13c413d..a36b0b4a1e0a0e44bd2d08c96b786f993d8d11b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
index 630b3adc2381c0bff65963011e1e27b3d71d5902..27508e31b89763855283fac002093f17b382eebc 100644 (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
    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__;