aboutsummaryrefslogtreecommitdiff
path: root/include/compat/win32netcompat.h
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2017-01-16 10:36:05 -0600
committerBrent Cook <busterb@gmail.com>2017-01-16 10:59:24 -0600
commit3b2560feb355e708a59ecfb224932810687a75ad (patch)
tree0854a5907ad6c5a545864ef964e14f53bd5ea5a8 /include/compat/win32netcompat.h
parent4cb675e2d9e17d7727c5268d4f7ccab70bd27aed (diff)
downloadportable-3b2560feb355e708a59ecfb224932810687a75ad.tar.gz
portable-3b2560feb355e708a59ecfb224932810687a75ad.tar.bz2
portable-3b2560feb355e708a59ecfb224932810687a75ad.zip
MSVSC fixes
Diffstat (limited to '')
-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)