perf tools: Allow build-id with trailing zeros
[linux-2.6-microblaze.git] / tools / perf / util / get_current_dir_name.c
index b205d92..e68935e 100644 (file)
@@ -3,8 +3,9 @@
 //
 #ifndef HAVE_GET_CURRENT_DIR_NAME
 #include "get_current_dir_name.h"
+#include <limits.h>
+#include <string.h>
 #include <unistd.h>
-#include <stdlib.h>
 
 /* Android's 'bionic' library, for one, doesn't have this */