From 1aabc2116afa147fad88f92b67cf8e862b6cbc19 Mon Sep 17 00:00:00 2001 From: An Ko Date: Wed, 20 May 2015 00:53:02 +0100 Subject: [PATCH] Portable ncurses build Fixes karlstav/cava#4. --- cava.c | 2 +- makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cava.c b/cava.c index d6b7704..27d5a0f 100644 --- a/cava.c +++ b/cava.c @@ -21,7 +21,7 @@ #include #include #include -#include "ncursesw/curses.h" +#include #include diff --git a/makefile b/makefile index a0d9bd4..ca7685f 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ CC = gcc CFLAGS = -std=c99 -Wall -Wextra CPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" \ -D_POSIX_SOURCE -D _POSIX_C_SOURCE=200809L -LDLIBS = -lasound -lm -lfftw3 -lpthread -lncursesw +LDLIBS = -lasound -lm -lfftw3 -lpthread $(shell ncursesw5-config --cflags --libs) INSTALL = install INSTALL_BIN = $(INSTALL) -D -m 755