utils: introduce mkdir_p
[project/libubox.git] / utils.h
diff --git a/utils.h b/utils.h
index 27f81e568bf5aa2d5c1bfe8cec883215e29593f1..5c53cc0260d39b00e9bec1a8062356904e0060b1 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -19,6 +19,7 @@
 #ifndef __LIBUBOX_UTILS_H
 #define __LIBUBOX_UTILS_H
 
+#include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <stdint.h>
@@ -252,5 +253,6 @@ static inline unsigned long cbuf_size(int order)
 
 void *cbuf_alloc(unsigned int order);
 void cbuf_free(void *ptr, unsigned int order);
+int mkdir_p(char *dir, mode_t mask);
 
 #endif