* lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
* m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
+2018-05-06 Bruno Haible <bruno@clisp.org>
+
+ af_alg: Avoid warnings.
+ * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
+ * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
+
2018-05-06 Bruno Haible <bruno@clisp.org>
crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
# else
-static int
+static inline int
afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen)
{
return -EAFNOSUPPORT;
-# af_alg.m4 serial 2
+# af_alg.m4 serial 3
dnl Copyright 2018 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN_ONCE([gl_AF_ALG],
[
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
+ AC_REQUIRE([AC_C_INLINE])
dnl Check whether linux/if_alg.h has needed features.
AC_CACHE_CHECK([whether linux/if_alg.h has struct sockaddr_alg.],