Browse Source

fix compile, reported by Susheel

Waldemar Brodkorb 10 years ago
parent
commit
293ca84359
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/json-c/Makefile

+ 3 - 0
package/json-c/Makefile

@@ -20,6 +20,9 @@ include $(ADK_TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,JSON_C,json-c,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
+CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes \
+			ac_cv_func_realloc_0_nonnull=yes
+
 json-c-install:
 	$(INSTALL_DIR) $(IDIR_JSON_C)/usr/lib
 	$(CP) $(WRKINST)/usr/lib/libjson*.so* \