1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

fix build

This commit is contained in:
SoapyMan 2015-12-10 10:06:55 +06:00
parent dc3cdb68f1
commit 0d0f40bab0
4 changed files with 5 additions and 9 deletions

View file

@ -178,7 +178,7 @@ delete_from_fd(struct lws_context *context, lws_sockfd_type fd)
* Default file callbacks
*/
LWS_VISIBLE int
LWS_VISIBLE void*
lws_plat_file_open(const char* filename, unsigned long* filelen)
{
(void)filename;

View file

@ -461,7 +461,7 @@ lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt)
* Default file callbacks
*/
LWS_VISIBLE int
LWS_VISIBLE void*
lws_plat_file_open(const char* filename, unsigned long* filelen)
{
struct stat stat_buf;

View file

@ -448,7 +448,7 @@ lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt)
* Default file callbacks
*/
LWS_VISIBLE HANDLE
LWS_VISIBLE void*
lws_plat_file_open(const char* filename, unsigned long* filelen)
{
HANDLE ret;

View file

@ -632,11 +632,7 @@ struct allocated_headers {
struct _lws_http_mode_related {
/* MUST be first in struct */
struct allocated_headers *ah; /* mirroring _lws_header_related */
#if defined(WIN32) || defined(_WIN32)
HANDLE fd;
#else
int fd;
#endif
void* fd;
unsigned long filepos;
unsigned long filelen;
@ -1287,7 +1283,7 @@ time_in_microseconds(void);
LWS_EXTERN const char *
lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt);
LWS_EXTERN HANDLE
LWS_EXTERN void*
lws_plat_file_open(const char* filename, unsigned long* filelen);
LWS_EXTERN void
lws_plat_file_close(void*fd);