aboutsummaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2011-10-24 18:02:11 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-30 18:45:21 -0700
commitc09cd77ea2fe3580b33918a99fe138d239ac2aaf (patch)
treed55158b903d42f10a2b8a2004081d110ddac364a /compat/mingw.h
parentf0bd664977b25e68c1230a533dd644706cff3ae2 (diff)
downloadgit-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.tar.gz
git-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.tar.xz
upload-archive: use start_command instead of fork
The POSIX-function fork is not supported on Windows. Use our start_command API instead. As this is the last call-site that depends on the fork-stub in compat/mingw.h, remove that as well. Add an undocumented flag to git-archive that tells it that the action originated from a remote, so features can be disabled. Thanks to Jeff King for work on this part. Remove the NOT_MINGW-prereq for t5000, as git-archive --remote now works. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index fecf0d077..dfb0e8726 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -85,8 +85,6 @@ static inline int symlink(const char *oldpath, const char *newpath)
{ errno = ENOSYS; return -1; }
static inline int fchmod(int fildes, mode_t mode)
{ errno = ENOSYS; return -1; }
-static inline pid_t fork(void)
-{ errno = ENOSYS; return -1; }
static inline unsigned int alarm(unsigned int seconds)
{ return 0; }
static inline int fsync(int fd)