+2021-01-04 Bruno Haible <bruno@clisp.org>
+
+ ffsl, ffsll: Work around AIX 7.2 problem.
+ * lib/string.in.h: On AIX, include <strings.h> for the declarations of
+ ffsl and ffsll.
+ * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
+ * doc/glibc-functions/ffsll.texi: Likewise.
+
2021-01-04 Bruno Haible <bruno@clisp.org>
ssfmalloc: Fix includes.
@item
This function is missing on some platforms:
FreeBSD 5.2.1, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 10, Cygwin 1.7.x, mingw, MSVC 14, Android 9.0.
+@item
+This function is declared in @code{<strings.h>} instead of @code{<string.h>}
+on some platforms:
+AIX 7.2.
@end itemize
Portability problems not fixed by Gnulib:
@item
This function is missing on many non-glibc platforms:
Mac OS X 10.5, FreeBSD 6.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 10, Cygwin 1.7.x, mingw, MSVC 14, Android 9.0.
+@item
+This function is declared in @code{<strings.h>} instead of @code{<string.h>}
+on some platforms:
+AIX 7.2.
@end itemize
Portability problems not fixed by Gnulib:
# include <unistd.h>
#endif
+/* AIX 7.2 declares ffsl and ffsll in <strings.h>, not in <string.h>. */
+/* But in any case avoid namespace pollution on glibc systems. */
+#if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \
+ && defined _AIX) \
+ && ! defined __GLIBC__
+# include <strings.h>
+#endif
+
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
/* The definition of _GL_ARG_NONNULL is copied here. */