From 3e73ec0d49b2acc2818ce6ceb033649a514f47d9 Mon Sep 17 00:00:00 2001 From: Frank Steinborn Date: Wed, 24 Apr 2019 18:57:49 +0200 Subject: [PATCH] add libbsd for strtonum() --- Makefile | 2 +- xidle.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60daf5e..751a968 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PREFIX = /usr INSTALL = install CFLAGS += -Wall -D__dead= -FLAGS = $(shell pkg-config --libs --cflags xscrnsaver xext x11) +FLAGS = $(shell pkg-config --libs --cflags xscrnsaver xext x11 libbsd) xidle: $(CC) -o xidle xidle.c $(CFLAGS) $(LDFLAGS) $(FLAGS) diff --git a/xidle.c b/xidle.c index 06809b2..8ec2898 100644 --- a/xidle.c +++ b/xidle.c @@ -39,6 +39,7 @@ #include #include #include +#include #ifndef CLASS_NAME #define CLASS_NAME "XIdle"