summaryrefslogtreecommitdiffstats
path: root/source4/lib/replace/replace.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-30 05:57:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:44 -0500
commit0a1a19d9d95b5adbe6c3dd3ed689ce7e3b43ab12 (patch)
treefdce0cec565cce5cd12563682d07a95de7cfb5ef /source4/lib/replace/replace.c
parent86f86f99efa44037e31a773fb561eca0c9d31d2a (diff)
downloadsamba-0a1a19d9d95b5adbe6c3dd3ed689ce7e3b43ab12.tar.gz
samba-0a1a19d9d95b5adbe6c3dd3ed689ce7e3b43ab12.tar.xz
samba-0a1a19d9d95b5adbe6c3dd3ed689ce7e3b43ab12.zip
r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the failures on solaris (This used to be commit acfaa98b5ea686feb81350baf09b3f4480f96edc)
Diffstat (limited to 'source4/lib/replace/replace.c')
-rw-r--r--source4/lib/replace/replace.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c
index 38a3d517df8..6f51bd2e99a 100644
--- a/source4/lib/replace/replace.c
+++ b/source4/lib/replace/replace.c
@@ -368,19 +368,6 @@ duplicate a string
#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)
-{
- time_t t = mktime(tm);
- t -= mktime(gmtime(&t)) - (int)mktime(localtime(&t));
- return t;
-}
-#endif
-
#ifndef HAVE_SETENV
int setenv(const char *name, const char *value, int overwrite)
{