From eda7d75a3370b532ba13f295f20c5e0b21da2163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 27 Oct 2022 23:41:46 +0800 Subject: [PATCH] fix --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index f68e5a6..e1ffeab 100644 --- a/server.c +++ b/server.c @@ -833,7 +833,7 @@ static void accept_client(int fd) { perror("Error when forking a subprocess"); sleep(1); }*/ - #ifdef __APPLE__ + #if defined __USE_POSIX199309 || __APPLE__ sigaction(SIGINT , &(const struct sigaction){handle_int , 0, 0}, NULL); sigaction(SIGQUIT, &(const struct sigaction){handle_quit, 0, 0}, NULL); sigaction(SIGKILL, &(const struct sigaction){handle_kill, 0, 0}, NULL);