string_util.c: provide fallback strndup() implementation

This patch also adds extern "C" { } wrapper around string_util.h
to allow its usage in C++ code
This commit is contained in:
Denis Krjuchkov
2013-01-11 13:51:39 +06:00
parent 631a268996
commit a98aa66620
4 changed files with 50 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_CHECK_FUNCS(pipe2 accept4 eventfd)
AC_CHECK_FUNCS(strndup)
AC_SEARCH_LIBS([exp], [m],,
[AC_MSG_ERROR([exp() not found])])