aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:21:14 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:37:41 +0200
commit1f70f5866866b03fe6c5d0bd1fea33db7bb99a0d (patch)
treef71fbd860af5a26f7f4aed747edc8f5970aefa6d
parente167b84f164904fcc14498a27026b5a354a5d0ad (diff)
downloadmpd-notification-1f70f5866866b03fe6c5d0bd1fea33db7bb99a0d.tar.gz
mpd-notification-1f70f5866866b03fe6c5d0bd1fea33db7bb99a0d.tar.zst
update include, use pkg-config for iniparseriniparser-4-2-2
... which ships required files with release 4.2.2.
-rw-r--r--Makefile5
-rw-r--r--mpd-notification.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f604121..32f5172 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,7 @@ RM := rm
# flags
CFLAGS_EXTRA += -std=c11 -O2 -fPIC -Wall -Werror
-ifneq ($(wildcard /usr/include/iniparser),)
-CFLAGS_EXTRA += -I/usr/include/iniparser
-endif
-CFLAGS_EXTRA += -liniparser
+CFLAGS_EXTRA += $(shell pkg-config --cflags --libs iniparser)
CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null)
ifneq ($(CFLAGS_SYSTEMD),)
CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD)
diff --git a/mpd-notification.h b/mpd-notification.h
index cd8b386..a7f9453 100644
--- a/mpd-notification.h
+++ b/mpd-notification.h
@@ -34,7 +34,7 @@
#include <systemd/sd-daemon.h>
#endif
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
#include <libnotify/notify.h>
#include <mpd/client.h>