mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
AK/StackInfo: Add support for NetBSD
This commit is contained in:
parent
b3aa36d7bd
commit
5b147f29ab
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#ifdef AK_OS_SERENITY
|
#ifdef AK_OS_SERENITY
|
||||||
# include <serenity.h>
|
# include <serenity.h>
|
||||||
#elif defined(AK_OS_LINUX) or defined(AK_OS_MACOS)
|
#elif defined(AK_OS_LINUX) or defined(AK_OS_MACOS) or defined(AK_OS_NETBSD)
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
#elif defined(AK_OS_FREEBSD) or defined(AK_OS_OPENBSD)
|
#elif defined(AK_OS_FREEBSD) or defined(AK_OS_OPENBSD)
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
|
@ -28,7 +28,7 @@ StackInfo::StackInfo()
|
||||||
perror("get_stack_bounds");
|
perror("get_stack_bounds");
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
#elif defined(AK_OS_LINUX) or defined(AK_OS_FREEBSD)
|
#elif defined(AK_OS_LINUX) or defined(AK_OS_FREEBSD) or defined(AK_OS_NETBSD)
|
||||||
int rc;
|
int rc;
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue