Ubuntu doesn't have a <sys/limit.h>, just <limits.h>.
It looks like <limits.h> will work for Android as well.
diff --git a/mkdir.c b/mkdir.c
index 656970a..5b4ac09 100644
--- a/mkdir.c
+++ b/mkdir.c
@@ -2,7 +2,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
-#include <sys/limits.h>
+#include <limits.h>
 #include <sys/stat.h>
 
 static int usage()