pidgin/pidgin

zephyr: Replace gettimeofday by GLib functions

2020-11-22, Elliott Sales de Andrade
6260f39c7c65
zephyr: Replace gettimeofday by GLib functions

* Use monotonic time for some timeouts.
* Use `g_get_real_time` instead of `gettimeofday` for remaining uses.

Testing Done:
Compile only

Reviewed at https://reviews.imfreedom.org/r/248/
if PLUGINS
if x11.found()
gntclipboard = library('gntclipboard', 'gntclipboard.c',
dependencies : [x11, libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gntgf = library('gntgf', 'gntgf.c',
c_args : ncurses_header,
dependencies : [x11, libpurple_dep, libfinch_dep, ncurses, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
endif
gnthistory = library('gnthistory', 'gnthistory.c',
dependencies : [libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gntlastlog = library('gntlastlog', 'lastlog.c',
dependencies : [libpurple_dep, libfinch_dep, ncurses, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gnttinyurl = library('gnttinyurl', 'gnttinyurl.c',
dependencies : [libpurple_dep, libfinch_dep, libsoup, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
grouping = library('grouping', 'grouping.c',
dependencies : [libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
endif # PLUGINS