Skip to content

Commit c13d63c

Browse files
committedJun 5, 2012
build: Added snprintf and strdup to AC_CHECK_FUNCS in order to compile
with OS X.
1 parent a789601 commit c13d63c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎config.h.in

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
and to 0 otherwise. */
3030
#undef HAVE_REALLOC
3131

32+
/* Define to 1 if you have the `snprintf' function. */
33+
#undef HAVE_SNPRINTF
34+
3235
/* Define to 1 if you have the <stdarg.h> header file. */
3336
#undef HAVE_STDARG_H
3437

@@ -38,6 +41,9 @@
3841
/* Define to 1 if you have the <stdlib.h> header file. */
3942
#undef HAVE_STDLIB_H
4043

44+
/* Define to 1 if you have the `strdup' function. */
45+
#undef HAVE_STRDUP
46+
4147
/* Define to 1 if you have the `strerror' function. */
4248
#undef HAVE_STRERROR
4349

‎configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ AC_FUNC_VPRINTF
2727
AC_FUNC_MEMCMP
2828
AC_FUNC_MALLOC
2929
AC_FUNC_REALLOC
30-
AC_CHECK_FUNCS(strndup strerror vsnprintf vasprintf open vsyslog strncasecmp)
30+
AC_CHECK_FUNCS(strndup strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp)
3131

3232
AM_PROG_LIBTOOL
3333

0 commit comments

Comments
 (0)
Please sign in to comment.