mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
From 01305b9ac11ce498968fafe8faa6677cdfe26ba3 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 22 Oct 2017 13:55:25 +0200
|
|
Subject: Pthread support
|
|
|
|
|
|
diff --git a/src/actions.cpp b/src/actions.cpp
|
|
index 0ebe850..73954c0 100644
|
|
--- a/src/actions.cpp
|
|
+++ b/src/actions.cpp
|
|
@@ -2048,6 +2048,8 @@ namespace {
|
|
#if defined(__APPLE__)
|
|
/* This is the critical section object (statically allocated). */
|
|
static pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
|
|
+ #elif defined(__HAIKU__)
|
|
+ static pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
|
|
#else
|
|
static pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
#endif
|
|
--
|
|
2.14.2
|
|
|
|
|
|
From 71625486c455fe2516720c38ddb3e6133d73d562 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 22 Oct 2017 13:55:42 +0200
|
|
Subject: Errno Haiku support
|
|
|
|
|
|
diff --git a/src/http.cpp b/src/http.cpp
|
|
index 86b7ebb..5d7e274 100644
|
|
--- a/src/http.cpp
|
|
+++ b/src/http.cpp
|
|
@@ -76,7 +76,11 @@
|
|
|
|
#include <unistd.h>
|
|
#include <strings.h>
|
|
+#ifndef __HAIKU__
|
|
#include <sys/errno.h>
|
|
+#else
|
|
+#include <errno.h>
|
|
+#endif
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
#include <sys/uio.h>
|
|
--
|
|
2.14.2
|
|
|