From 58783af4108dced2ff0df6ffb0d09b84d2f2153f Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Sat, 23 Mar 2024 09:53:01 +0100 Subject: [PATCH] For MacOS, do not have multiple identicat cases in switch --- sslh-fork.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sslh-fork.c b/sslh-fork.c index 3bd28c7..40a1b5a 100644 --- a/sslh-fork.c +++ b/sslh-fork.c @@ -167,11 +167,7 @@ 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 +#define ENONET EWOULDBLOCK #endif /* /MacOS kludge */