For MacOS, do not have multiple identicat cases in switch

This commit is contained in:
Yves Rutschle 2024-03-23 09:53:01 +01:00
parent 1957be1dc3
commit 58783af410

View File

@ -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 */