xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon
Log | Files | Refs | README | LICENSE

commit 5e526469cc6f8a0dc6f6f17c703c84b5237e1483
parent f96aef810a3b434b32882a6f85e252fa291c0488
Author: sin <sin@2f30.org>
Date:   Wed,  1 Apr 2015 23:39:09 +0100

We always need unistd.h so include it unconditionally

Diffstat:
Mxbattmon.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xbattmon.c b/xbattmon.c @@ -9,6 +9,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "arg.h" #include "util.h" @@ -174,7 +175,6 @@ redraw(void) #ifdef __OpenBSD__ #include <sys/ioctl.h> #include <fcntl.h> -#include <unistd.h> #include <machine/apmvar.h> void @@ -202,7 +202,6 @@ pollbat(void) state = info.ac_state == APM_AC_ON ? AC_ON : AC_OFF; } #elif __linux__ -#include <unistd.h> void pollbat(void) {