Skip to content

Commit

Permalink
CI: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Jan 12, 2025
1 parent 878e516 commit 923d890
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,10 @@ if(LINUX)
src/detection/displayserver/linux/wayland/global-output.c
src/detection/displayserver/linux/wayland/zwlr-output.c
src/detection/displayserver/linux/wayland/kde-output.c
src/detection/displayserver/linux/wayland/color-manager.c
src/detection/displayserver/linux/wayland/wlr-output-management-unstable-v1-protocol.c
src/detection/displayserver/linux/wayland/kde-output-device-v2-protocol.c
src/detection/displayserver/linux/wayland/kde-output-order-v1-protocol.c
src/detection/displayserver/linux/wayland/xdg-output-unstable-v1-protocol.c
src/detection/displayserver/linux/wayland/xx-color-management-v4-protocol.c
src/detection/displayserver/linux/wmde.c
src/detection/displayserver/linux/xcb.c
src/detection/displayserver/linux/xlib.c
Expand Down
7 changes: 5 additions & 2 deletions src/detection/cpu/cpu_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
#include "common/sysctl.h"

#include <sys/param.h>
#include <sys/cpuset.h>
#if __has_include(<sys/cpuset.h>)
#include <sys/cpuset.h>
#define FF_HAVE_CPUSET 1
#endif

static const char* detectCpuTemp(double* current)
{
Expand Down Expand Up @@ -63,7 +66,7 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
}
}

#if __x86_64__ || __i386__
#if FF_HAVE_CPUSET && (__x86_64__ || __i386__)
// Bind current process to the first two cores, which is *usually* a performance core
cpuset_t currentCPU;
CPU_ZERO(&currentCPU);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"
#include <wayland-util.h>

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -556,7 +556,7 @@ struct kde_output_device_v2_listener {
/**
* describes when auto rotate is used
*
*
*
* @since 4
*/
void (*auto_rotate_policy)(void *data,
Expand All @@ -565,7 +565,7 @@ struct kde_output_device_v2_listener {
/**
* describes when auto rotate is used
*
*
*
* @since 5
*/
void (*icc_profile_path)(void *data,
Expand All @@ -574,7 +574,7 @@ struct kde_output_device_v2_listener {
/**
* metadata about the screen's brightness limits
*
*
*
* @param max_peak_brightness in nits
* @param max_frame_average_brightness in nits
* @param min_brightness in 0.0001 nits
Expand All @@ -588,7 +588,7 @@ struct kde_output_device_v2_listener {
/**
* overrides for the screen's brightness limits
*
*
*
* @param max_peak_brightness -1 for no override, positive values are the brightness in nits
* @param max_average_brightness -1 for no override, positive values are the brightness in nits
* @param min_brightness -1 for no override, positive values are the brightness in 0.0001 nits
Expand All @@ -614,7 +614,7 @@ struct kde_output_device_v2_listener {
/**
* describes which source the compositor uses for the color profile on an output
*
*
*
* @since 7
*/
void (*color_profile_source)(void *data,
Expand All @@ -638,7 +638,7 @@ struct kde_output_device_v2_listener {
/**
* the preferred color/power tradeoff
*
*
*
* @since 10
*/
void (*color_power_tradeoff)(void *data,
Expand Down

0 comments on commit 923d890

Please sign in to comment.