This website requires JavaScript.
Explore
Help
Sign in
debian
/
notmuch
Watch
1
Star
0
Fork
You've already forked notmuch
0
mirror of
https://git.notmuchmail.org/git/notmuch
synced
2024-11-22 10:58:10 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
0aac2ae67e
notmuch
/
compat
/
have_timegm.c
8 lines
78 B
C
Raw
Normal View
History
Unescape
Escape
timegm: add portable implementation (Solaris support) 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>
2013-08-21 13:09:54 +02:00
#
include
<time.h>
compat: run uncrustify This is the result of running $ uncrustify --replace --config ../devel/uncrustify.cfg *.c *.h in the compat directory
2019-06-13 12:34:25 +02:00
int
main
(
)
timegm: add portable implementation (Solaris support) 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>
2013-08-21 13:09:54 +02:00
{
compat: run uncrustify This is the result of running $ uncrustify --replace --config ../devel/uncrustify.cfg *.c *.h in the compat directory
2019-06-13 12:34:25 +02:00
return
(
int
)
timegm
(
(
struct
tm
*
)
0
)
;
timegm: add portable implementation (Solaris support) 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>
2013-08-21 13:09:54 +02:00
}
Reference in a new issue
Copy permalink