# | Line 43 | Line 43 | inline int sputenv(const string& name) | |
---|---|---|
43 | ||
44 | inline void sunsetenv(const string& name) { unsetenv(name.c_str()); } | |
45 | ||
46 | – | #ifdef __CYGWIN__ |
47 | – | |
48 | – | inline time_t timegm(struct tm* time) |
49 | – | { |
50 | – | string zone = sgetenv("TZ"); |
51 | – | |
52 | – | sputenv("TZ="); |
53 | – | tzset(); |
54 | – | |
55 | – | time_t when = mktime(time); |
56 | – | |
57 | – | sputenv("TZ=" + zone); |
58 | – | tzset(); |
59 | – | |
60 | – | return when; |
61 | – | } |
62 | – | |
63 | – | #endif |
64 | – | |
46 | class HostStatus | |
47 | { | |
48 | private: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |