From 2a83f0581e42390f3399d43aa5999d9518c752f8 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 23 Mar 2008 11:16:01 -0400 Subject: [PATCH] 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. --- src/compat.h | 4 ++++ src/main.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.20.1