Move SIGCHLD definition to compat.h so that other files can use it.
[srvx.git] / src / compat.h
index d1508e25b0127fc02f15839f7c9dd88f8483a61b..40b17ba9c9f711285f71123696875c5248ec8786 100644 (file)
@@ -84,9 +84,14 @@ char *alloca();
 #endif
 
 #ifndef HAVE_GETTIMEOFDAY
+struct timezone;
 extern int gettimeofday(struct timeval * tv, struct timezone * tz);
 #endif
 
+#ifndef HAVE_GETLOCALTIME_R
+extern struct tm *localtime_r(const time_t *timep, struct tm *result);
+#endif
+
 #ifndef HAVE_MEMCPY
 /* this should use size_t, but some systems don't define it */
 extern void * memcpy(void * dest, void const * src, unsigned long n);
@@ -132,6 +137,10 @@ void freeaddrinfo(struct addrinfo *res);
 
 #endif
 
+#ifndef HAVE_GAI_STRERROR
+const char *gai_strerror(int errcode);
+#endif
+
 #ifndef EINPROGRESS
 # ifdef WSAEINPROGRESS
 #  define EINPROGRESS WSAEINPROGRESS
@@ -142,4 +151,8 @@ void freeaddrinfo(struct addrinfo *res);
 # endif
 #endif
 
+#ifndef SIGCHLD
+# define SIGCHLD SIGCLD
+#endif
+
 #endif /* COMPAT_H */