From 23be72ae4534c13a7fd03f580934cc251ada619f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 13 Jun 2012 14:41:52 -0400 Subject: add timegm function (inverse of gmtime), nonstandard --- include/time.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index 067b5196..ecdc66df 100644 --- a/include/time.h +++ b/include/time.h @@ -114,6 +114,9 @@ struct tm *getdate (const char *); int stime(time_t *); #endif +#if defined(_GNU_SOURCE) +time_t timegm(struct tm *); +#endif #ifdef __cplusplus } -- cgit v1.2.1