tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit 2fcbf3b880b2cf6160d476abe241b5c69c164fe0
parent c9606838a648e7ef3226ee3c9de99a06072a1416
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 17 May 2021 01:24:55 +0300

Drop non-POSIX SO_REUSEPORT

Diffstat:
Mmain.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -1,4 +1,4 @@ -#define _DEFAULT_SOURCE +#define _POSIX_C_SOURCE 200809L #include <ev.h> #ifndef ev_io_modify #define ev_io_modify(ev,events_) do { (ev)->events = (ev)->events & EV__IOFDSET | (events_); } while (0) @@ -1452,7 +1452,6 @@ int main (int argc, char *argv[]) continue; setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int)); - setsockopt(lfd, SOL_SOCKET, SO_REUSEPORT, &(int){1}, sizeof(int)); if (!bind(lfd, ai->ai_addr, ai->ai_addrlen)) break;