diff options
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index 0299cd3..7eb42a5 100644 --- a/common/compat.h +++ b/common/compat.h @@ -272,4 +272,19 @@ int vasprintf (char **strp, #endif /* HAVE_VASPRINTF */ +#ifndef HAVE_GMTIME_R +#include <time.h> + +struct tm * gmtime_r (const time_t *timep, + struct tm *result); + +#endif /* HAVE_GMTIME_R */ + +#ifndef HAVE_TIMEGM +#include <time.h> + +time_t timegm (struct tm *tm); + +#endif /* HAVE_TIMEGM */ + #endif /* __COMPAT_H__ */ |