Fully fix build on Cygwin.
[srvx.git] / src / common.h
index f8e4de5884d0e100cfd54009f320a61a537ebfdd..37f8f4be340f65ff7f956f20e1a63f65629e9489 100644 (file)
 #include "compat.h"
 #include "proto.h"
 
-#if !defined(HAVE_LOCALTIME_R) && !defined(__CYGWIN__)
-extern struct tm *localtime_r(const time_t *clock, struct tm *res);
-#elif defined(__CYGWIN__)
-# define localtime_r(clock, res) memcpy(res, localtime(clock), sizeof(struct tm));
-#endif
-
 #ifndef true
 #define true 1
 #endif