From: Erik Faye-Lund Date: Mon, 28 Apr 2014 15:20:55 GMT Subject: Re: [PATCH 12/12] MINGW: compat/mingw.h: drop fork() definition Message-ID: In-Reply-To: <1398693097-24651-13-git-send-email-marat@slonopotamus.org> On Mon, Apr 28, 2014 at 3:51 PM, Marat Radchenko wrote: > fork() is not used in MinGW builds but causes a compiler warning > on x86_64 MinGW-W64: conflicting types for built-in function 'fork' > > Signed-off-by: Marat Radchenko > --- > compat/mingw.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/compat/mingw.h b/compat/mingw.h > index 8850109..2fbc8ea 100644 > --- a/compat/mingw.h > +++ b/compat/mingw.h > @@ -89,8 +89,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) I've been using a similar patch for a while, so: Acked-by: Erik Faye-Lund