Skip to content

Commit

Permalink
osdep/threads-posix: fix headers for OpenBSD build
Browse files Browse the repository at this point in the history
In OpenBSD the compilation fail because osdep/threads-posix.h
need include pthread_np.h
  • Loading branch information
yukiteruamano authored and Dudemanguy committed Feb 15, 2024
1 parent e190616 commit 2935320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osdep/threads-posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

#include "common/common.h"
#include "config.h"
// We make use of NON-POSIX pthreads functions and certain systems
// require this header to build without issues. (ex: OpenBSD)
#if HAVE_BSD_THREAD_NAME
#include <pthread_np.h>
#endif
#include "osdep/compiler.h"
#include "timer.h"

Expand Down

0 comments on commit 2935320

Please sign in to comment.