Skip to content

Commit ddea683

Browse files
committed
Merge branch 'freebsd-support' of https://git01.codeplex.com/forks/m1xa/casablanca into staging
2 parents 0bc80a5 + 0e1ec38 commit ddea683

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Release/include/compat/SafeInt3.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@ Version 3.0
117117
#endif
118118
#endif
119119

120+
#ifdef __has_feature
121+
#ifdef NEEDS_NULLPTR_DEFINED
122+
#undef NEEDS_NULLPTR_DEFINED
123+
#endif
124+
#if __has_feature(cxx_nullptr)
125+
#define NEEDS_NULLPTR_DEFINED 0
126+
#else
127+
#define NEEDS_NULLPTR_DEFINED 1
128+
#endif
129+
#endif
130+
120131
#if NEEDS_NULLPTR_DEFINED
121132
#define nullptr NULL
122133
#endif

Release/src/http/listener/http_linux_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void connection::close()
7171
boost::system::error_code ec;
7272
sock->cancel(ec);
7373
sock->shutdown(tcp::socket::shutdown_both, ec);
74-
sock->close();
74+
sock->close(ec);
7575
}
7676
m_request._reply_if_not_already(status_codes::InternalError);
7777
}

Release/src/pplx/linux/pplxlinux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace details {
4343
{
4444
_PPLXIMP long GetCurrentThreadId()
4545
{
46-
return (long)syscall(SYS_gettid) * 4;
46+
return reinterpret_cast<long>(pthread_self());
4747
}
4848

4949
_PPLXIMP void YieldExecution()

0 commit comments

Comments
 (0)