diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-10-30 13:59:59 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-10-30 13:59:59 +0100 |
commit | 68fe16dd327c895c08b9ee443b234c49c13b36e9 (patch) | |
tree | d7d0b01de4948cbfd486c53cae3be9f380e86977 | |
parent | dadf23f06c134d09b5930e09bddfdab2c0ca6150 (diff) | |
download | glibc-68fe16dd327c895c08b9ee443b234c49c13b36e9.tar glibc-68fe16dd327c895c08b9ee443b234c49c13b36e9.tar.gz glibc-68fe16dd327c895c08b9ee443b234c49c13b36e9.tar.bz2 glibc-68fe16dd327c895c08b9ee443b234c49c13b36e9.zip |
ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU
Recent BSDs declare these functions, too.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | string/strings.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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): diff --git a/string/strings.h b/string/strings.h index 630b3adc23..27508e31b8 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__; |