Skip to content

Commit

Permalink
Fix build with musl
Browse files Browse the repository at this point in the history
Fixes the following build failure:
In file included from ../common/common-cpu.c:32:
../common/common-cpu.h:44:9: error: unknown type name 'cpu_set_t'
   44 |         cpu_set_t *online;
      |         ^~~~~~~~~
../common/common-cpu.h:45:9: error: unknown type name 'cpu_set_t'
   45 |         cpu_set_t *to_keep;
      |         ^~~~~~~~~

Signed-off-by: Kostadin Shishmanov <[email protected]>
  • Loading branch information
Kostadin Shishmanov authored and afayaz-feral committed Jan 3, 2024
1 parent 5180d89 commit 4a82094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/common-cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ POSSIBILITY OF SUCH DAMAGE.

#pragma once

#define _GNU_SOURCE

#include <sched.h>
#include <stdlib.h>

Expand Down

0 comments on commit 4a82094

Please sign in to comment.