-#include <sys/types.h>
-#include <dirent.h>
#include "cache.h"
#include "blob.h"
int checkout_entry(struct cache_entry *ce, struct checkout *state, char *topath)
{
- static char path[MAXPATHLEN+1];
+ static char path[PATH_MAX + 1];
struct stat st;
int len = state->base_dir_len;
create_directories(path, state);
return write_entry(ce, path, state, 0);
}
-
-