From: Michael Poole Date: Sun, 23 Mar 2008 15:16:01 +0000 (-0400) Subject: Move SIGCHLD definition to compat.h so that other files can use it. X-Git-Tag: v1.4.0-rc3~34 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=2a83f0581e42390f3399d43aa5999d9518c752f8 Move SIGCHLD definition to compat.h so that other files can use it. src/compat.h: If SIGCHLD is not defined, define it here. src/main.c: ... rather than here. --- diff --git a/src/compat.h b/src/compat.h index 8a6e8e2..40b17ba 100644 --- a/src/compat.h +++ b/src/compat.h @@ -151,4 +151,8 @@ const char *gai_strerror(int errcode); # endif #endif +#ifndef SIGCHLD +# define SIGCHLD SIGCLD +#endif + #endif /* COMPAT_H */ diff --git a/src/main.c b/src/main.c index 2438868..ec0bde8 100644 --- a/src/main.c +++ b/src/main.c @@ -52,10 +52,6 @@ #include #endif -#ifndef SIGCHLD -#define SIGCHLD SIGCLD -#endif - #include "main-common.c" void sigaction_writedb(int x)