roken: prevent rk_mkdir recursion due to macro
rk_mkdir() should not be redefined to mkdir() nor should mkdir() be redefined to rk_mkdir() when compiling lib/roken/mkdir.c Change-Id: I329fd2eb5794548635d33218a65df8958746a6f9
This commit is contained in:
@@ -38,7 +38,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "roken.h"
|
#include "roken.h"
|
||||||
#undef mkdir
|
#ifdef MKDIR_DOES_NOT_HAVE_MODE
|
||||||
|
#undef mkdir
|
||||||
|
#else
|
||||||
|
#undef rk_mkdir
|
||||||
|
#endif
|
||||||
|
|
||||||
int ROKEN_LIB_FUNCTION
|
int ROKEN_LIB_FUNCTION
|
||||||
rk_mkdir(const char *pathname, mode_t mode)
|
rk_mkdir(const char *pathname, mode_t mode)
|
||||||
|
Reference in New Issue
Block a user