summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-10-10 15:44:29 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-10-10 15:44:29 +0800
commit5064f774f75976b397a2321158657249ea1a4961 (patch)
treeafa18d3b2ac8d0943b2ddd82113f079f9ba67e95
parenta264c280b95ead5d1a7ae52823381157a1f1d58b (diff)
Fix Android crash when using malloc
config.h had to removed before because of minimal AC_DEFINE. Now it compiles again, but still crashes when calling libcurl functions.
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 319aee9..01e576b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,8 @@ AC_ARG_ENABLE([strap],
[AS_HELP_STRING([--enable-strap],
[enable Strap template parsing with libtidy])],
[PKG_CHECK_MODULES([TIDY], [tidy])
- AC_DEFINE([ENABLE_STRAP])],
+ AC_DEFINE([ENABLE_STRAP], [1],
+ [Define to 1 if you enable Strap.])],
[enable_strap=no])
AM_CONDITIONAL([STRAP], [test "x$enable_strap" = xyes])
AC_CANONICAL_HOST
@@ -35,5 +36,6 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
+AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT