Skip to content

Commit

Permalink
Solaris: Check for strndup availability (issue #253)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Dec 28, 2015
1 parent 91dcbe1 commit a3bbe80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.librdkafka
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ function checks {
mkl_mkvar_append CPPFLAGS CPPFLAGS "-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D__EXTENSIONS__"
fi

# Check if strndup() is available (isn't on Solaris 10)
mkl_compile_check "strndup" "HAVE_STRNDUP" disable CC "" \
"#include <string.h>
int main (void) {
return strndup("hi", 2) ? 0 : 1;
}"

# Figure out what tool to use for dumping public symbols.
# We rely on configure.cc setting up $NM if it exists.
if mkl_env_check "nm" "" cont "NM" ; then
Expand Down

0 comments on commit a3bbe80

Please sign in to comment.