Compile in C99 mode

src/websocket.c:247:2: error: 'for' loop initial declarations are only allowed in C99 mode
  for(int i = 0; p < eom && i < cmd->count; i++) {
  ^
master
quocbao 2 years ago committed by Nicolas Favre-Felix
parent c6b9d52213
commit 50d16b16ca
No known key found for this signature in database
GPG Key ID: C04E7AA8B6F73372

@ -9,7 +9,7 @@ CFLAGS ?= -Wall -Wextra -Isrc -Isrc/jansson/src -Isrc/http-parser -MD
LDFLAGS ?= -levent -pthread
# Pass preprocessor macros to the compile invocation
CFLAGS += $(CPPFLAGS)
CFLAGS += $(CPPFLAGS) -std=gnu99
# check for MessagePack
MSGPACK_LIB=$(shell ls /usr/lib/libmsgpack.so 2>/dev/null)

Loading…
Cancel
Save