summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorAndreas Ericsson <ae@op5.se>2008-11-29 15:34:20 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-12-02 09:18:19 -0800
commitea790f337b0e401f5e4acabf9af9c2bc756d5f3b (patch)
tree8ec389978cc56e25a6a5bdf6be993c7664e762b5 /src/fileops.h
parent4188d28f1c38240392d896fc79561cc461fb12c0 (diff)
downloadlibgit2-ea790f337b0e401f5e4acabf9af9c2bc756d5f3b.tar.gz
Add a dirent walker to the fileops API
Since at least MS have something like GetFirstDirEnt() and GetNextDirEnt() (presumably with superior performance), we can let MS hackers add support for a dirent walker using that API instead, while we stick with the posix-style readdir() calls. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 56d0888fe..2683a6b43 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -17,7 +17,9 @@
#include <time.h>
#include <stdlib.h>
#include <string.h>
+#include <dirent.h>
#include "errors.h"
+#include "git/fileops.h"
typedef int git_file;
typedef struct stat gitfo_statbuf;