mirror of
https://github.com/sonertari/SSLproxy
synced 2024-11-02 15:40:19 +00:00
Disable getdtablecount() on osx, temporarily
This commit is contained in:
parent
7847486bc4
commit
e1d96a874e
@ -776,7 +776,11 @@ pxy_log_dbg_disconnect_child(pxy_conn_child_ctx_t *ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#ifdef __APPLE__
|
||||||
|
#define getdtablecount() 0
|
||||||
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
/*
|
/*
|
||||||
* Copied from:
|
* Copied from:
|
||||||
* https://github.com/tmux/tmux/blob/master/compat/getdtablecount.c
|
* https://github.com/tmux/tmux/blob/master/compat/getdtablecount.c
|
||||||
@ -811,7 +815,7 @@ getdtablecount()
|
|||||||
globfree(&g);
|
globfree(&g);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
#endif /* defined(__linux__) || defined(__APPLE__) */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
pxy_malloc_packet(size_t sz, pxy_conn_ctx_t *ctx)
|
pxy_malloc_packet(size_t sz, pxy_conn_ctx_t *ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user