From d66e775c8d6e4ac77b808a276c80933770c35ec6 Mon Sep 17 00:00:00 2001 From: parazyd Date: Sun, 29 Apr 2018 15:41:18 +0200 Subject: Add OpenBSD support in volume.c --- components/volume.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'components/volume.c') diff --git a/components/volume.c b/components/volume.c index 4c9a6ac..7c831c9 100644 --- a/components/volume.c +++ b/components/volume.c @@ -1,8 +1,11 @@ /* See LICENSE file for copyright and license details. */ -#if defined(__linux__) #include #include -#include +#if defined(__OpenBSD__) +# include +#else +# include +#endif #include #include #include @@ -42,4 +45,3 @@ vol_perc(const char *card) return bprintf("%d", v & 0xff); } -#endif -- cgit v1.2.3