X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcompat.h;h=8a6e8e25ec4e3a328a937bef024fbabf1cc0d6e6;hb=6f22223d9d80a148babc60a6483dd50c74cce723;hp=d1508e25b0127fc02f15839f7c9dd88f8483a61b;hpb=ed506a25fb6056b4a226c88591d259015c61be4b;p=srvx.git diff --git a/src/compat.h b/src/compat.h index d1508e2..8a6e8e2 100644 --- a/src/compat.h +++ b/src/compat.h @@ -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