From c7b24f59afc1a2fa26d491116ea88ba2fb618def Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Tue, 29 Oct 2019 18:12:15 +0000 Subject: [PATCH] wmbattery: sunos fixes. Add includes needed to get the sonypi ioctl code to compile on Solaris. Signed-off-by: Jeremy Sowden --- wmbattery/sonypi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wmbattery/sonypi.c b/wmbattery/sonypi.c index 92ba106..003a6cd 100644 --- a/wmbattery/sonypi.c +++ b/wmbattery/sonypi.c @@ -1,10 +1,15 @@ #include +#ifdef __sun +#include +#include +#endif #include #include "apm.h" #include #include #include #include +#include #include "sonypi.h"