Skip to content

Commit

Permalink
Fix non-SSL compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Jan 22, 2024
1 parent b18d987 commit 825fc86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ void us_internal_loop_post(struct us_loop_t *loop) {

struct us_socket_t *us_adopt_accepted_socket(int ssl, struct us_socket_context_t *context, LIBUS_SOCKET_DESCRIPTOR accepted_fd,
unsigned int socket_ext_size, char *addr_ip, int addr_ip_length) {
#ifndef LIBUS_NO_SSL
if (ssl) {
return (struct us_socket_t *)us_internal_ssl_adopt_accepted_socket((struct us_internal_ssl_socket_context_t *)context, accepted_fd,
socket_ext_size, addr_ip, addr_ip_length);
}
#endif
struct us_poll_t *accepted_p = us_create_poll(context->loop, 0, sizeof(struct us_socket_t) - sizeof(struct us_poll_t) + socket_ext_size);
us_poll_init(accepted_p, accepted_fd, POLL_TYPE_SOCKET);
us_poll_start(accepted_p, context->loop, LIBUS_SOCKET_READABLE);
Expand Down

0 comments on commit 825fc86

Please sign in to comment.