diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2023-12-11 20:15:52 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2023-12-11 20:54:13 +0000 |
commit | 777444defaf302b6d19439f9139e1da2823dc259 (patch) | |
tree | 5ca17d3f96b1e5ec960287754cc0c75a8f23f687 | |
parent | 4d0fefaa531b74795d6e65e1f194f3cbde87d907 (diff) | |
download | ports-777444defaf302b6d19439f9139e1da2823dc259.tar.gz ports-777444defaf302b6d19439f9139e1da2823dc259.zip |
sysutils/plasma5-powerdevil: Fix build on FreeBSD 12.x
/usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'?
int sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
PR: 275573
Reported by: Sergey V. Koupreyenko <sergey.koupreyenko@gmail.com>
-rw-r--r-- | sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp b/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp new file mode 100644 index 000000000000..6e79ebfdd181 --- /dev/null +++ b/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp @@ -0,0 +1,17 @@ +Fix build on FreeBSD 12.x. + +/usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'? +int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); + ^ +--- daemon/backends/upower/freebsdbacklighthelper.cpp.orig 2023-12-11 05:59:31 UTC ++++ daemon/backends/upower/freebsdbacklighthelper.cpp +@@ -31,8 +31,8 @@ + + #include <algorithm> + #include <climits> +-#include <sys/sysctl.h> + #include <sys/types.h> ++#include <sys/sysctl.h> + #include <sys/utsname.h> + + #define BACKLIGHT_PATH "/dev/backlight/" |