projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eedea9
)
windows fix SetFilePointer args
author
Andy Green
<andy.green@linaro.org>
Thu, 3 Apr 2014 11:52:37 +0000
(19:52 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 3 Apr 2014 11:52:37 +0000
(19:52 +0800)
This restricts it to 4GB files on 32-bit Windows but it'll do for now.
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/private-libwebsockets.h
patch
|
blob
|
history
diff --git
a/lib/private-libwebsockets.h
b/lib/private-libwebsockets.h
index
1443de0
..
75a26e7
100644
(file)
--- a/
lib/private-libwebsockets.h
+++ b/
lib/private-libwebsockets.h
@@
-71,7
+71,7
@@
#define compatible_close(fd) closesocket(fd)
#define compatible_file_close(fd) CloseHandle(fd)
-#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, FILE_CURRENT)
+#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset,
NULL,
FILE_CURRENT)
#define compatible_file_read(amount, fd, buf, len) {\
DWORD _amount; \
if (!ReadFile(fd, buf, len, &amount, NULL)) \