Use AC_REPLACE_FUNCS
strndup is removed from AC_CHECK_FUNCS since it will be provided if not found. Fixes #2610
This commit is contained in:
@ -12,12 +12,11 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef HAVE_mkdirp
|
||||
/*
|
||||
* Emulates mkdir -p (creates any missing folders)
|
||||
*
|
||||
*/
|
||||
|
||||
#if !defined(__sun)
|
||||
int mkdirp(const char *path, mode_t mode) {
|
||||
if (mkdir(path, mode) == 0)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user