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:
Jeffrey Altman
2013-08-01 12:37:14 -04:00
parent 13814606f4
commit c90b0398df

View File

@@ -38,7 +38,11 @@
#endif
#include "roken.h"
#undef mkdir
#ifdef MKDIR_DOES_NOT_HAVE_MODE
#undef mkdir
#else
#undef rk_mkdir
#endif
int ROKEN_LIB_FUNCTION
rk_mkdir(const char *pathname, mode_t mode)