aboutsummaryrefslogtreecommitdiff
path: root/include/compat/win32netcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/win32netcompat.h')
-rw-r--r--include/compat/win32netcompat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/win32netcompat.h b/include/compat/win32netcompat.h
index 933f083..eabebe9 100644
--- a/include/compat/win32netcompat.h
+++ b/include/compat/win32netcompat.h
@@ -26,7 +26,10 @@
26 26
27int posix_connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); 27int posix_connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
28 28
29int posix_open(const char *path, ...);
30
29int posix_close(int fd); 31int posix_close(int fd);
32
30ssize_t posix_read(int fd, void *buf, size_t count); 33ssize_t posix_read(int fd, void *buf, size_t count);
31 34
32ssize_t posix_write(int fd, const void *buf, size_t count); 35ssize_t posix_write(int fd, const void *buf, size_t count);
@@ -39,6 +42,7 @@ int posix_setsockopt(int sockfd, int level, int optname,
39 42
40#ifndef NO_REDEF_POSIX_FUNCTIONS 43#ifndef NO_REDEF_POSIX_FUNCTIONS
41#define connect(sockfd, addr, addrlen) posix_connect(sockfd, addr, addrlen) 44#define connect(sockfd, addr, addrlen) posix_connect(sockfd, addr, addrlen)
45#define open(path, ...) posix_open(path, __VA_ARGS__)
42#define close(fd) posix_close(fd) 46#define close(fd) posix_close(fd)
43#define read(fd, buf, count) posix_read(fd, buf, count) 47#define read(fd, buf, count) posix_read(fd, buf, count)
44#define write(fd, buf, count) posix_write(fd, buf, count) 48#define write(fd, buf, count) posix_write(fd, buf, count)