diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-02 23:58:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:17 -0500 |
commit | 56460288bff9021a66d5761ef3afe96881bfc73a (patch) | |
tree | e10f7f8564aac48610b68e7ecca947d2888c6c92 /source3/lib/replace.c | |
parent | 3d4d799eee88ad4226c18034fabb571fb91011e9 (diff) | |
download | samba-56460288bff9021a66d5761ef3afe96881bfc73a.tar.gz samba-56460288bff9021a66d5761ef3afe96881bfc73a.tar.bz2 samba-56460288bff9021a66d5761ef3afe96881bfc73a.zip |
r16017: Add Samba4 replacement for timegm to work
on Solaris.
Jeremy.
(This used to be commit b65c6468651282879a39fa8029c190f2d1a91a28)
Diffstat (limited to 'source3/lib/replace.c')
-rw-r--r-- | source3/lib/replace.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source3/lib/replace.c b/source3/lib/replace.c index 120fd3a468..9ef3503d39 100644 --- a/source3/lib/replace.c +++ b/source3/lib/replace.c @@ -434,27 +434,3 @@ char *rep_inet_ntoa(struct in_addr ip) } #endif /* HAVE_SYSLOG */ #endif /* HAVE_VSYSLOG */ - - -#ifndef HAVE_TIMEGM -/* - yes, I know this looks insane, but its really needed. The function in the - Linux timegm() manpage does not work on solaris. -*/ - time_t timegm(struct tm *tm) -{ - struct tm tm2, tm3; - time_t t; - - tm2 = *tm; - - t = mktime(&tm2); - tm3 = *localtime(&t); - tm2 = *tm; - tm2.tm_isdst = tm3.tm_isdst; - t = mktime(&tm2); - t -= get_time_zone(t); - - return t; -} -#endif |