Skip to content

Commit d50d320

Browse files
committed
Fix minor bugs for Windows.
1 parent 09859c0 commit d50d320

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Makefile.windows

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ OBJS = \
4747
$(PLATFORM)/misc.obj \
4848
$(PLATFORM)/resources.obj
4949

50-
client: CFLAGS = $(CLIENT_CFLAGS) -I$(DIVERT_ROOT)/include/
50+
client: CFLAGS = $(CLIENT_CFLAGS) -I$(DIVERT_ROOT)/include/ -mno-ms-bitfields
5151
client: CLIBS = -lws2_32 -lkernel32 -lWinDivert -L$(DIVERT_ROOT)/$(ARCH)/
5252
client: $(OBJS)
5353
$(CC) -o $(CLIENT_PROG).exe $(OBJS) -Wl,-subsystem,windows $(CLIBS)
@@ -59,9 +59,9 @@ $(PLATFORM)/resources.obj: $(PLATFORM)/resources.rc
5959
%.obj: %.c http_data.c install_data.c
6060
$(CC) $(CFLAGS) -o $@ -c $<
6161

62-
encodings/natural.obj: CFLAGS = $(CLIENT_CFLAGS) -O3
62+
encodings/natural.obj: CFLAGS = $(CLIENT_CFLAGS) -O3 -mno-ms-bitfields
6363
encodings/aes_hardware.obj: CFLAGS = $(CLIENT_CFLAGS) -maes -mssse3 \
64-
-flax-vector-conversions
64+
-flax-vector-conversions -mno-ms-bitfields
6565

6666
http_data.c: ui/* tools/file2c.exe
6767
(cd ui/; ../tools/file2c.exe * > ../http_data.c)

src/install/install.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
ENABLED = "true"
55
HIDE_TCP = "true"
6-
HIDE_TCP_DATA = "false"
6+
HIDE_TCP_DATA = "true"
77
HIDE_TCP_SYN = "set"
88
HIDE_TCP_ACK = "set"
99
HIDE_TCP_PSH = "set"

0 commit comments

Comments
 (0)