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