diff --git a/headers/compatibility/bsd/pthread.h b/headers/compatibility/bsd/pthread.h new file mode 100644 index 0000000000..4efcb74fca --- /dev/null +++ b/headers/compatibility/bsd/pthread.h @@ -0,0 +1,33 @@ +/* + * Copyright 2023 Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ +#ifndef _BSD_PTHREAD_H_ +#define _BSD_PTHREAD_H_ + + +#include_next +#include + + +#ifdef _DEFAULT_SOURCE + + +#ifdef __cplusplus +extern "C" { +#endif + + +extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr); + + +#ifdef __cplusplus +} +#endif + + +#endif + + +#endif /* _BSD_PTHREAD_H_ */ +