diff --git a/compat/mingw.h b/compat/mingw.h
index ce9dd980eb211c0301c4008249c61fb0b09f1280..dfb0e87263a37bdee347c0a762aeea42fc57cee9 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
{ 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)
char *mingw_getenv(const char *name);
#define getenv mingw_getenv
+int mingw_gethostname(char *host, int namelen);
+#define gethostname mingw_gethostname
+
struct hostent *mingw_gethostbyname(const char *host);
#define gethostbyname mingw_gethostbyname