Merge pull request #3824 from orestisfl/ac_replace_funcs
Use AC_REPLACE_FUNCS
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;
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
#ifndef HAVE_strndup
|
||||
/*
|
||||
* Taken from FreeBSD
|
||||
* Returns a pointer to a new string which is a duplicate of the
|
||||
@ -30,5 +29,4 @@ char *strndup(const char *str, size_t n) {
|
||||
copy[len] = '\0';
|
||||
return (copy);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user