mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Fix the build
This commit is contained in:
parent
f2af97711b
commit
d55b019284
3 changed files with 9 additions and 5 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "libc/mem/gc.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/nexgen32e.h"
|
||||
#include "libc/nexgen32e/vendor.internal.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "libc/sysv/consts/prot.h"
|
||||
|
@ -98,6 +99,7 @@ static void *CheckSchedule(void *arg) {
|
|||
TEST(pthread_create, scheduling) {
|
||||
pthread_t id;
|
||||
pthread_attr_t attr;
|
||||
if (IsGenuineCosmo()) return; // TODO(jart): blink
|
||||
struct sched_param pri = {sched_get_priority_min(SCHED_OTHER)};
|
||||
ASSERT_EQ(0, pthread_attr_init(&attr));
|
||||
ASSERT_EQ(0, pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue