Merge branch 'master' into master
This commit is contained in:
commit
c02d9278bc
2 changed files with 5 additions and 1 deletions
|
|
@ -137,7 +137,11 @@ static DECLARE_WAIT_QUEUE_HEAD(binder_user_error_wait);
|
|||
static int binder_stop_on_user_error;
|
||||
|
||||
static int binder_set_stop_on_user_error(const char *val,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
||||
const struct kernel_param *kp)
|
||||
#else
|
||||
struct kernel_param *kp)
|
||||
#endif
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ unsigned short BaseSocketMessenger<stream_protocol>::local_port() const {
|
|||
|
||||
template <typename stream_protocol>
|
||||
void BaseSocketMessenger<stream_protocol>::set_no_delay() {
|
||||
const auto fd = socket->native();
|
||||
const auto fd = socket->native_handle();
|
||||
int flag = 1;
|
||||
const auto ret =
|
||||
::setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue