aboutsummaryrefslogtreecommitdiff
path: root/include/compat
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2025-10-07 05:38:30 -0500
committerBrent Cook <busterb@gmail.com>2025-10-07 05:38:30 -0500
commit7ed28d2f501a4920b792bee9da3d61814f024a4c (patch)
treeb5ff3f835188bb8ba3a00a9d7185a3762ffa6c15 /include/compat
parent659e87fe1cf3348a4e9f1bacfe205316fefd8a51 (diff)
downloadportable-7ed28d2f501a4920b792bee9da3d61814f024a4c.tar.gz
portable-7ed28d2f501a4920b792bee9da3d61814f024a4c.tar.bz2
portable-7ed28d2f501a4920b792bee9da3d61814f024a4c.zip
add mkstemp for msvc builds
Diffstat (limited to 'include/compat')
-rw-r--r--include/compat/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
index 63c07fc..544cb27 100644
--- a/include/compat/unistd.h
+++ b/include/compat/unistd.h
@@ -45,6 +45,8 @@ static inline unsigned int sleep(unsigned int seconds)
45 Sleep(seconds * 1000); 45 Sleep(seconds * 1000);
46 return seconds; 46 return seconds;
47} 47}
48
49int mkstemp(char *template);
48#endif 50#endif
49 51
50int ftruncate(int fd, off_t length); 52int ftruncate(int fd, off_t length);