diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-12-11 13:22:06 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-12-11 13:22:06 +1100 |
commit | afffd310360b155df2133d1f5f1ab2f4e939b570 (patch) | |
tree | c0ee1e71b5f1ebf4d056fe110d9bda6797f9dccb /configure.ac | |
parent | ad8cd420797695f3b580aea1034b9de60bede9b9 (diff) |
Check if memmem is declared in system headers.
If the system (or one of the dependencies) implements memmem but does
not define the header, we would not declare it either resulting in
compiler warnings. Check for declaration explicitly. bz#3102.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a12fc0d12..6e70e52c3 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1873,7 +1873,7 @@ AC_CHECK_FUNCS([ \ | |||
1873 | warn \ | 1873 | warn \ |
1874 | ]) | 1874 | ]) |
1875 | 1875 | ||
1876 | AC_CHECK_DECLS([bzero]) | 1876 | AC_CHECK_DECLS([bzero, memmem]) |
1877 | 1877 | ||
1878 | dnl Wide character support. | 1878 | dnl Wide character support. |
1879 | AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth]) | 1879 | AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth]) |