summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-12 15:33:22 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-12 15:33:22 +0100
commit452c12403abc521a809aebdd0ef5409146bb3256 (patch)
tree2f99de7034f97808fa3e1b7ac8ce34cb1ebfb386
parent1ed84a25c2db8ade2b2162b429b30e9138eb5d16 (diff)
Add a few more os-win32.h definitions for later
This is part of some other WIP but might be useful in general so might as well be committed on its own.
-rw-r--r--src/os-win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os-win32.h b/src/os-win32.h
index 08399dd..8aeb93a 100644
--- a/src/os-win32.h
+++ b/src/os-win32.h
@@ -95,6 +95,9 @@ static inline void os_randombytes(void *buf, int sz) {
#define read _read
#define write _write
#define close _close
+#define fdopen _fdopen
+#define dup _dup
+#define dup2 _dup2
#define O_RDONLY _O_RDONLY
#define O_RDWR _O_RDWR
#define O_CLOEXEC _O_NOINHERIT // and why did they rename this!?