PKGBUILDs/extra/xfce4-battery-plugin/fix-unistd-include.patch
2016-05-07 13:17:23 +00:00

20 lines
521 B
Diff

Index: xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c
===================================================================
--- xfce4-battery-plugin-1.0.5.orig/panel-plugin/libacpi.c
+++ xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <dirent.h>
#include <glob.h>
+#include <unistd.h>
#ifdef __FreeBSD__
#include <fcntl.h>
@@ -52,7 +53,6 @@ static int acpifd;
#include <sys/sysctl.h>
#include <err.h>
#include <errno.h>
-#include <unistd.h>
#endif