summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index 535db1d..9f0d1b8 100644
--- a/makeint.h
+++ b/makeint.h
@@ -351,6 +351,14 @@ char *strsignal (int signum);
# include <malloc.h>
# define pipe(_p) _pipe((_p), 512, O_BINARY)
# define kill(_pid,_sig) w32_kill((_pid),(_sig))
+/* MSVC doesn't have ftruncate. */
+# ifdef _MSC_VER
+# define ftruncate(_fd,_len) _chsize(_fd,_len)
+# endif
+/* MinGW64 doesn't have _S_ISDIR. */
+# ifndef _S_ISDIR
+# define _S_ISDIR(m) S_ISDIR(m)
+# endif
void sync_Path_environment (void);
int w32_kill (pid_t pid, int sig);