X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fos.c;h=ee754f9f2689c44461aa56dad2f16cf72c05595f;hb=dc8091e7b9eb80b77699ac59de3f39eedef65c04;hp=2b6f79c3fab66a24e121bb734e4194b0a5047d81;hpb=9acf6b941e1356590e94e8e4a0bcf5dd3318087c;p=exim.git diff --git a/src/src/os.c b/src/src/os.c index 2b6f79c3f..ee754f9f2 100644 --- a/src/src/os.c +++ b/src/src/os.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2012 */ +/* Copyright (c) University of Cambridge 1995 - 2014 */ /* See the file NOTICE for conditions of use and distribution. */ #ifdef STAND_ALONE @@ -836,39 +836,6 @@ os_get_dns_resolver_res(void) /* ----------------------------------------------------------------------- */ -/*********************************************************** -* Time-related functions * -***********************************************************/ - -/* At least Solaris, and probably others, don't have this */ - -#ifndef _BSD_SOURCE - -# include -# include - -time_t -timegm(struct tm * tm) -{ -time_t ret; -char *tz; - -tz = getenv("TZ"); -setenv("TZ", "", 1); -tzset(); -ret = mktime(tm); -if (tz) - setenv("TZ", tz, 1); -else - unsetenv("TZ"); -tzset(); -return ret; -} - -#endif - -/* ----------------------------------------------------------------------- */ -