From 218d97541c8e9bc65f853100ebbaab4f4cfddd84 Mon Sep 17 00:00:00 2001 From: stolk Date: Tue, 12 Nov 2019 09:22:08 -0800 Subject: [PATCH] popen() requires _POSIX_SOURCE to be 2 or higher. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db49cec..cbf11ee 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ imcat: imcat.c - cc -std=c99 -Wall -g -o imcat imcat.c -lm + cc -D_POSIX_C_SOURCE=2 -std=c99 -Wall -g -o imcat imcat.c -lm run: imcat ./imcat ~/Desktop/*.png