xbattmon

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

commit f82770eeb4cd3ce8ddeb6d57103eaf4586dbc157
parent fe05991661fe17a1f54fa6d8ce92ccc6b2ec8e93
Author: sin <sin@2f30.org>
Date:   Sun,  9 Nov 2014 17:27:56 +0000

ioctl.h + fcntl.h + unistd.h is only needed for OpenBSD

Diffstat:
Mxbattmon.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/xbattmon.c b/xbattmon.c @@ -1,15 +1,12 @@ /* See LICENSE file for copyright and license details. */ -#include <sys/ioctl.h> - +#include <X11/Xlib.h> #include <err.h> #include <errno.h> -#include <fcntl.h> #include <limits.h> #include <poll.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <X11/Xlib.h> #include "arg.h" @@ -123,6 +120,9 @@ redraw(void) } #ifdef __OpenBSD__ +#include <sys/ioctl.h> +#include <fcntl.h> +#include <unistd.h> #include <machine/apmvar.h> void pollbat(void)