Skip to content

Commit

Permalink
sysutils/plasma5-powerdevil: Fix build on FreeBSD 12.x
Browse files Browse the repository at this point in the history
/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>
  • Loading branch information
BSDKaffee committed Dec 11, 2023
1 parent 4d0fefa commit 777444d
Showing 1 changed file with 17 additions and 0 deletions.
@@ -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/"

0 comments on commit 777444d

Please sign in to comment.