diff options
author | Bruno Haible <bruno@clisp.org> | 2021-07-17 17:32:18 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-07-17 17:32:18 +0200 |
commit | 18a9101c9f60bdc8f59da27cc1c6a161abd02c9d (patch) | |
tree | 39049f03c2f64ef0bac41553b9d0bf982965044a /m4/memmem.m4 | |
parent | e707dbe7c6da9dd8300cb3d60141f144a7a5d5b1 (diff) | |
download | gnulib-18a9101c9f60bdc8f59da27cc1c6a161abd02c9d.tar.gz |
Fix cross-compilation test results.
* m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, include
<string.h> before testing __GNU_LIBRARY__.
* m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
Diffstat (limited to 'm4/memmem.m4')
-rw-r--r-- | m4/memmem.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/memmem.m4 b/m4/memmem.m4 index f4a167b483..6dac766128 100644 --- a/m4/memmem.m4 +++ b/m4/memmem.m4 @@ -1,4 +1,4 @@ -# memmem.m4 serial 28 +# memmem.m4 serial 29 dnl Copyright (C) 2002-2004, 2007-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -50,6 +50,7 @@ AC_DEFUN([gl_FUNC_MEMMEM_SIMPLE], dnl Assume that it works on all other platforms (even if not linear). AC_EGREP_CPP([Lucky user], [ +#include <string.h> /* for __GNU_LIBRARY__ */ #ifdef __GNU_LIBRARY__ #include <features.h> #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \ |