Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added built-in http server #511

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ ifndef USE_VOIP
USE_VOIP=1
endif

ifndef USE_HTTP_SERVER
USE_HTTP_SERVER=0
endif

ifndef USE_FREETYPE
USE_FREETYPE=0
endif
Expand Down Expand Up @@ -1076,6 +1080,10 @@ ifeq ($(USE_VOIP),1)
NEED_OPUS=1
endif

ifeq ($(USE_HTTP_SERVER),1)
SERVER_CFLAGS += -DUSE_HTTP_SERVER
endif

ifeq ($(USE_CODEC_OPUS),1)
CLIENT_CFLAGS += -DUSE_CODEC_OPUS
NEED_OPUS=1
Expand Down Expand Up @@ -2252,6 +2260,7 @@ Q3DOBJ = \
$(B)/ded/sv_client.o \
$(B)/ded/sv_ccmds.o \
$(B)/ded/sv_game.o \
$(B)/ded/sv_http.o \
$(B)/ded/sv_init.o \
$(B)/ded/sv_main.o \
$(B)/ded/sv_net_chan.o \
Expand Down
2 changes: 1 addition & 1 deletion code/qcommon/net_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static struct addrinfo *SearchAddrInfo(struct addrinfo *hints, sa_family_t famil
Sys_StringToSockaddr
=============
*/
static qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int sadr_len, sa_family_t family)
qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int sadr_len, sa_family_t family)
{
struct addrinfo hints;
struct addrinfo *res = NULL;
Expand Down
Loading