From d02803dffa91f21c77cd814fafba891eca8e4a16 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 1 Aug 2008 19:24:55 +0200 Subject: [PATCH] Patches for NetBSD --- source/Makefile | 3 +++ source/main.c | 9 +++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/source/Makefile b/source/Makefile index d2945aa..b068d02 100644 --- a/source/Makefile +++ b/source/Makefile @@ -6,6 +6,9 @@ LDFLAGS := $(shell pkg-config --exists ao && pkg-config ao --libs) \ ifeq ($(shell uname -s), OpenBSD) LDFLAGS += -lossaudio endif +ifeq ($(shell uname -s), NetBSD) + LDFLAGS += -lossaudio +endif LIBAO := $(shell pkg-config --exists ao && echo -DLIBAO && pkg-config ao --cflags) CFLAGS := -Os -Wall -W -I./include/ $(LIBAO) $(shell pkg-config mad --cflags) diff --git a/source/main.c b/source/main.c index 3209ff7..e9d3bd9 100644 --- a/source/main.c +++ b/source/main.c @@ -35,6 +35,15 @@ #define PATH_MAX 4096 #endif +#ifdef __NetBSD__ +# ifndef WCONTINUED +# define WCONTINUED 0 /* not available on NetBSD */ +# endif +# ifndef WIFCONTINUED +# define WIFCONTINUED(x) ((x) == 0x13) /* SIGCONT */ +# endif +#endif + unsigned flags = RTP; time_t changeTime = 0, pausetime = 0; char * nextstation = NULL; -- 1.5.6