From c13d63ce49185e788f0dcdb1e8208721fa942475 Mon Sep 17 00:00:00 2001 From: Bruno Lima Date: Tue, 5 Jun 2012 14:27:49 -0300 Subject: [PATCH 1/2] build: Added snprintf and strdup to AC_CHECK_FUNCS in order to compile with OS X. --- config.h.in | 6 ++++++ configure.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 04f5dc5..19725c3 100644 --- a/config.h.in +++ b/config.h.in @@ -29,6 +29,9 @@ and to 0 otherwise. */ #undef HAVE_REALLOC +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + /* Define to 1 if you have the header file. */ #undef HAVE_STDARG_H @@ -38,6 +41,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP + /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR diff --git a/configure.in b/configure.in index b2c3cbe..53f99df 100644 --- a/configure.in +++ b/configure.in @@ -27,7 +27,7 @@ AC_FUNC_VPRINTF AC_FUNC_MEMCMP AC_FUNC_MALLOC AC_FUNC_REALLOC -AC_CHECK_FUNCS(strndup strerror vsnprintf vasprintf open vsyslog strncasecmp) +AC_CHECK_FUNCS(strndup strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp) AM_PROG_LIBTOOL From 8aaf0b1f40467b0115d79759d1a95adad5f4ae0f Mon Sep 17 00:00:00 2001 From: Bruno Lima Date: Tue, 5 Jun 2012 20:39:07 -0300 Subject: [PATCH 2/2] build: Added json_object_iterator.h to installed headers --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index d4a7bbb..490da00 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,10 +18,12 @@ libjsoninclude_HEADERS = \ json_inttypes.h \ json_object.h \ json_object_private.h \ + json_object_iterator.h \ json_tokener.h \ json_util.h \ linkhash.h \ printbuf.h + #libjsonx_includedir = $(libdir)/json-c-@VERSION@ #