tFix build on Linux - ltk - Socket-based GUI for X11 (WIP)
HTML git clone git://lumidify.org/ltk.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit dceafa37894c4e9c6a53a784288170ffc9c0fd66
DIR parent d02312cfb88d3c52be0c9c4e421af28b224fd7b5
HTML Author: lumidify <nobody@lumidify.org>
Date: Thu, 24 Dec 2020 14:14:21 +0100
Fix build on Linux
Diffstat:
M config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/config.mk b/config.mk
t@@ -1,6 +1,6 @@
VERSION = -999
-CFLAGS = -g -std=c99 -w -fcommon -Wall -Werror -Wextra `pkg-config --cflags x11 fontconfig` -pedantic
+CFLAGS = -D_POSIX_C_SOURCE=200809L -g -std=c99 -w -fcommon -Wall -Werror -Wextra `pkg-config --cflags x11 fontconfig` -pedantic
LDFLAGS = -lm `pkg-config --libs x11 fontconfig`
# Comment when enabling pango rendering:
OBJ = stb_truetype.o text_stb.o