summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-02 23:58:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:17 -0500
commitb65c6468651282879a39fa8029c190f2d1a91a28 (patch)
tree3b8336a9ed79b6ce4263241d114f730e62e1fdd7 /source/lib/replace.c
parentda26565a2e85dc36b283f6b81378a706f3ae5f26 (diff)
downloadsamba-b65c6468651282879a39fa8029c190f2d1a91a28.tar.gz
samba-b65c6468651282879a39fa8029c190f2d1a91a28.tar.xz
samba-b65c6468651282879a39fa8029c190f2d1a91a28.zip
r16017: Add Samba4 replacement for timegm to work
on Solaris. Jeremy.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index 120fd3a4688..9ef3503d39f 100644
--- a/source/lib/replace.c
+++ b/source/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