aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2014-09-17 02:27:01 -0700
committerLev Walkin <vlm@lionet.info>2014-09-17 02:27:01 -0700
commit04fbe62bbcb53c999698b67b1f0e9fdff3f37d92 (patch)
tree72a6baf6efd5fe384c381a1a3947337a04a564a4 /skeletons
parenteace46c5dbb3f3e176ad8b0149aedd71b651f542 (diff)
check if timegm is present before emulating
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/GeneralizedTime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/skeletons/GeneralizedTime.c b/skeletons/GeneralizedTime.c
index 4b0ae5d4..9672c967 100644
--- a/skeletons/GeneralizedTime.c
+++ b/skeletons/GeneralizedTime.c
@@ -128,6 +128,7 @@ static long GMTOFF(struct tm a){
tzset(); \
} while(0); } while(0);
+#ifndef HAVE_TIMEGM
#ifdef _EMULATE_TIMEGM
static time_t timegm(struct tm *tm) {
time_t tloc;
@@ -138,6 +139,7 @@ static time_t timegm(struct tm *tm) {
return tloc;
}
#endif /* _EMULATE_TIMEGM */
+#endif
#ifndef __ASN_INTERNAL_TEST_MODE__