Makefile: On Windows Subsystem for Linux (WSL), build as Posix
@@ -40,8 +40,9 @@ GREP_COLOR ?=
OS ?= $(shell uname -s)
MARCH ?= $(shell uname -m)
+KERNEL ?= $(shell uname -r)
-ifeq ($(OS),Linux)
+ifeq ($(OS)$(findstring Microsoft,$(KERNEL)),Linux)
ARCH := LINUX
ARCH_CFLAGS := -std=c11 -I/usr/local/include \
