From 0dd580f45b2123a3bf0754d126d526ad1fa59fd8 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Wed, 24 Sep 2025 14:48:16 +0200 Subject: [PATCH] move symbol definition for Cygwin (fix #506) --- common.c | 6 ------ common.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/common.c b/common.c index bc086e5..82dd173 100644 --- a/common.c +++ b/common.c @@ -25,12 +25,6 @@ #include #endif -/* Added to make the code compilable under CYGWIN - * */ -#ifndef SA_NOCLDWAIT -#define SA_NOCLDWAIT 0 -#endif - /* Make use of systemd socket activation * */ #ifdef SYSTEMD diff --git a/common.h b/common.h index e56bd1e..0aac1d4 100644 --- a/common.h +++ b/common.h @@ -9,6 +9,13 @@ #define FD_SETSIZE 4096 #endif +/* Cygwin does not define some symbols + * */ +#ifndef SA_NOCLDWAIT +#define SA_NOCLDWAIT 0 +#endif + + #define _GNU_SOURCE #include #include