Skip to content

Commit

Permalink
for MacOS, define unknown symbols to equivalent values
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed Mar 21, 2024
1 parent b94060a commit ecca78b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sslh-fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ void set_listen_procname(struct listen_endpoint *listen_socket)
}


/* At least MacOS does not know these two options, so define them to something
* equivalent for our use case */
#ifndef ENONET
#define ENONET ENETDOWN
#endif

#ifndef EOPNOTSUPP
#define EOPNOTSUPP ENETDOWN
#endif
/* /MacOS kludge */

/* TCP listener: connections, fork a child for each new connection
* IN:
* endpoint: array of listening endpoint objects
Expand Down

0 comments on commit ecca78b

Please sign in to comment.