Skip to content

Commit

Permalink
Fix include prctl.h for specific OS #4063
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavle committed Oct 22, 2023
1 parent b93d57f commit b579dd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Foundation/src/Thread_POSIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "Poco/Timestamp.h"
#include "Poco/Format.h"
#include <signal.h>
#include <sys/prctl.h>

#if POCO_OS == POCO_OS_FREE_BSD
# include <sys/thr.h>
Expand All @@ -38,6 +37,10 @@
# include <time.h>
#endif

#if POCO_OS == POCO_OS_LINUX || POCO_OS == POCO_OS_ANDROID || POCO_OS == POCO_OS_FREE_BSD
# include <sys/prctl.h>
#endif

#if POCO_OS == POCO_OS_LINUX
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* See feature_test_macros(7) */
Expand Down

0 comments on commit b579dd4

Please sign in to comment.