Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Upstream-Status: Backport from |
| 2 | |
| 3 | http://git.xfce.org/panel-plugins/xfce4-battery-plugin/commit/?id=0f6926479728ca784a20b63d7c146a91e37d98fb |
| 4 | |
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 6 | --- |
| 7 | From 0f6926479728ca784a20b63d7c146a91e37d98fb Mon Sep 17 00:00:00 2001 |
| 8 | From: Landry Breuil <landry@xfce.org> |
| 9 | Date: Thu, 19 Mar 2015 20:42:24 +0100 |
| 10 | Subject: Fix build on aarch64 (bug #11724) |
| 11 | |
| 12 | |
| 13 | diff --git a/panel-plugin/libacpi.c b/panel-plugin/libacpi.c |
| 14 | index 530194d..efb5c9c 100644 |
| 15 | --- a/panel-plugin/libacpi.c |
| 16 | +++ b/panel-plugin/libacpi.c |
| 17 | @@ -29,6 +29,7 @@ |
| 18 | #include <sys/types.h> |
| 19 | #include <dirent.h> |
| 20 | #include <glob.h> |
| 21 | +#include <unistd.h> |
| 22 | |
| 23 | #ifdef __FreeBSD__ |
| 24 | #include <fcntl.h> |
| 25 | @@ -52,7 +53,6 @@ static int acpifd; |
| 26 | #include <sys/sysctl.h> |
| 27 | #include <err.h> |
| 28 | #include <errno.h> |
| 29 | -#include <unistd.h> |
| 30 | |
| 31 | #endif |
| 32 | |
| 33 | -- |
| 34 | cgit v0.10.1 |