summaryrefslogtreecommitdiff
path: root/platform/server/platform_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/server/platform_config.h')
-rw-r--r--platform/server/platform_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/server/platform_config.h b/platform/server/platform_config.h
index af4cf07393..2fa8eda337 100644
--- a/platform/server/platform_config.h
+++ b/platform/server/platform_config.h
@@ -28,4 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
+#ifdef __linux__
#include <alloca.h>
+#endif
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#include <stdlib.h>
+#define PTHREAD_BSD_SET_NAME
+#endif