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 4835785..a36b0b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        Convert to support/test-driver.c.
        (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
index 630b3ad..27508e3 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__;