Commit 9d6ba1c8 authored by Lev Walkin's avatar Lev Walkin

Solaris fix

parent b7c58996
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#define _POSIX_PTHREAD_SEMANTICS /* for Sun */ #define _POSIX_PTHREAD_SEMANTICS /* for Sun */
#define _REENTRANT /* for Sun */ #define _REENTRANT /* for Sun */
#define __EXTENSIONS__ /* for Sun */
#ifndef _BSD_SOURCE #ifndef _BSD_SOURCE
#define _BSD_SOURCE /* for timegm(3) */ #define _BSD_SOURCE /* for timegm(3) */
#endif #endif
...@@ -48,7 +49,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) { ...@@ -48,7 +49,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
#endif /* _WIN32 */ #endif /* _WIN32 */
#if defined(sun) || defined(_sun_) || defined(__solaris__) #if defined(sun) || defined(__sun) || defined(__solaris__)
#define _EMULATE_TIMEGM #define _EMULATE_TIMEGM
#endif #endif
...@@ -144,6 +145,7 @@ static long GMTOFF(struct tm a){ ...@@ -144,6 +145,7 @@ static long GMTOFF(struct tm a){
#ifndef HAVE_TIMEGM #ifndef HAVE_TIMEGM
#ifdef _EMULATE_TIMEGM #ifdef _EMULATE_TIMEGM
#include <stdlib.h>
static time_t timegm(struct tm *tm) { static time_t timegm(struct tm *tm) {
time_t tloc; time_t tloc;
ATZVARS; ATZVARS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment