From 5b94c3b449a9b02992d7b9cc49a5573eee2bebbc Mon Sep 17 00:00:00 2001 From: spayton Date: Mon, 7 Apr 2014 18:43:58 +0100 Subject: [PATCH] Update private-libwebsockets.h fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount' --- lib/private-libwebsockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index d45f6ec..b3d4e46 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -74,7 +74,7 @@ #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)) \ + if (!ReadFile(fd, buf, len, &_amount, NULL)) \ amount = -1; \ else \ amount = _amount; \ -- 2.7.4