Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
d2f5b199
Commit
d2f5b199
authored
11 years ago
by
Joakim Söderberg
Committed by
Andy Green
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
windows Fix build.
parent
e9b61b5b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-1
5 additions, 1 deletion
CMakeLists.txt
lib/private-libwebsockets.h
+7
-0
7 additions, 0 deletions
lib/private-libwebsockets.h
with
12 additions
and
1 deletion
CMakeLists.txt
+
5
−
1
View file @
d2f5b199
...
@@ -486,7 +486,11 @@ if (LWS_WITH_SSL)
...
@@ -486,7 +486,11 @@ if (LWS_WITH_SSL)
message
(
"OpenSSL libraries:
${
OPENSSL_LIBRARIES
}
"
)
message
(
"OpenSSL libraries:
${
OPENSSL_LIBRARIES
}
"
)
include_directories
(
"
${
OPENSSL_INCLUDE_DIR
}
"
)
include_directories
(
"
${
OPENSSL_INCLUDE_DIR
}
"
)
list
(
APPEND LIB_LIST
${
OPENSSL_LIBRARIES
}
dl
)
list
(
APPEND LIB_LIST
${
OPENSSL_LIBRARIES
}
)
# Link against dynamic linking functions.
# (Don't link directly to libdl since it is not needed on all platforms, it's now a part of libc).
list
(
APPEND LIB_LIST
${
CMAKE_DL_LIBS
}
)
endif
()
endif
()
endif
(
LWS_WITH_SSL
)
endif
(
LWS_WITH_SSL
)
...
...
This diff is collapsed.
Click to expand it.
lib/private-libwebsockets.h
+
7
−
0
View file @
d2f5b199
...
@@ -82,6 +82,13 @@
...
@@ -82,6 +82,13 @@
#define lws_set_blocking_send(wsi) wsi->sock_send_blocking = TRUE
#define lws_set_blocking_send(wsi) wsi->sock_send_blocking = TRUE
#include
<winsock2.h>
#include
<winsock2.h>
#include
<windows.h>
#include
<windows.h>
#include
<tchar.h>
#include
<mstcpip.h>
#ifndef __func__
#define __func__ __FUNCTION__
#endif
#define LWS_INVALID_FILE INVALID_HANDLE_VALUE
#define LWS_INVALID_FILE INVALID_HANDLE_VALUE
#else
/* not windows --> */
#else
/* not windows --> */
#include
<errno.h>
#include
<errno.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment