Move SIGCHLD definition to compat.h so that other files can use it.
authorMichael Poole <mdpoole@troilus.org>
Sun, 23 Mar 2008 15:16:01 +0000 (11:16 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 23 Mar 2008 15:16:01 +0000 (11:16 -0400)
src/compat.h: If SIGCHLD is not defined, define it here.
src/main.c: ... rather than here.

src/compat.h
src/main.c

index 8a6e8e25ec4e3a328a937bef024fbabf1cc0d6e6..40b17ba9c9f711285f71123696875c5248ec8786 100644 (file)
@@ -151,4 +151,8 @@ const char *gai_strerror(int errcode);
 # endif
 #endif
 
+#ifndef SIGCHLD
+# define SIGCHLD SIGCLD
+#endif
+
 #endif /* COMPAT_H */
index 2438868d2789da61376b9f9cb440acedfa2da8f8..ec0bde8985d4bb2e3d416581c1dd002fe27ab27b 100644 (file)
 #include <sys/wait.h>
 #endif
 
-#ifndef SIGCHLD
-#define SIGCHLD SIGCLD
-#endif
-
 #include "main-common.c"
 
 void sigaction_writedb(int x)