xbattmon

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

commit fe05991661fe17a1f54fa6d8ce92ccc6b2ec8e93
parent 4058ed37fe06300bd3ca70ad17d4e41b5255d6d8
Author: sin <sin@2f30.org>
Date:   Sun Nov  9 17:14:56 +0000

Bring the includes further down to avoid extra ifdefs

Diffstat:
xbattmon.c | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/xbattmon.c b/xbattmon.c @@ -9,15 +9,8 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> - #include <X11/Xlib.h> -#ifdef __OpenBSD__ -#include <machine/apmvar.h> -#elif __linux__ -#include <bsd/stdlib.h> -#endif - #include "arg.h" #define LEN(x) (sizeof(x) / sizeof(*(x))) @@ -130,6 +123,7 @@ redraw(void) } #ifdef __OpenBSD__ +#include <machine/apmvar.h> void pollbat(void) { @@ -155,6 +149,7 @@ pollbat(void) state = info.ac_state == APM_AC_ON ? AC_ON : AC_OFF; } #elif __linux__ +#include <bsd/stdlib.h> void pollbat(void) {