Skip to content

Commit

Permalink
Fix cross-compiling issue caused by AC_FUNC_MALLOC
Browse files Browse the repository at this point in the history
* configure.ac:
  - Replace AC_FUNC_MALLOC with AC_CHECK_FUNCS([malloc]),
    as we don't rely on GNU's malloc(0) behavior.

Thanks Vanessa McHale for the report. Closes: #11
  • Loading branch information
thep committed Jan 21, 2019
1 parent 8e2537b commit 86122fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2019-01-21 Theppitak Karoonboonyanan <theppitak@gmail.com>

Fix cross-compiling issue caused by AC_FUNC_MALLOC

* configure.ac:
- Replace AC_FUNC_MALLOC with AC_CHECK_FUNCS([malloc]),
as we don't rely on GNU's malloc(0) behavior.

Thanks Vanessa McHale for the report. Closes: #11

2018-11-23 Theppitak Karoonboonyanan <theppitak@gmail.com>

Fix wrong key listing in byte trie
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ AC_SUBST(htmldocdir)
AM_CONDITIONAL(ENABLE_DOXYGEN_DOC,test "x$enable_doxygen_doc" = "xyes")

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([malloc])

AC_CONFIG_FILES([Makefile
datrie-0.2.pc
Expand Down

0 comments on commit 86122fe

Please sign in to comment.