diff --git a/sys/sys/semaphore.h b/sys/sys/semaphore.h index 180625221f2e..34ede7b26613 100644 --- a/sys/sys/semaphore.h +++ b/sys/sys/semaphore.h @@ -37,12 +37,14 @@ #ifndef _SEMAPHORE_H_ #define _SEMAPHORE_H_ +#include + /* Opaque type definition. */ struct sem; typedef struct sem * sem_t; #define SEM_FAILED ((sem_t *)0) -#define SEM_VALUE_MAX (~0U) /* Equivalent to UINT_MAX. */ +#define SEM_VALUE_MAX __INT_MAX #ifndef _KERNEL #include