mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-27 03:41:41 +01:00
8c6b2e7e9d
The timegm(3) function is a non-standard extension to libc which is available in GNU libc and on some BSDs. Although SunOS had this function in its libc, Solaris (unfortunately) removed it. This patch implements a very simple version of timegm() which is good enough for parse-time-string.c. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
7 lines
95 B
C
7 lines
95 B
C
#include <time.h>
|
|
#include "compat.h"
|
|
|
|
int main()
|
|
{
|
|
return (int) timegm((struct tm *)0);
|
|
}
|