After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632577 - gtimer.c: sys/time.h include error
gtimer.c: sys/time.h include error
Status: RESOLVED DUPLICATE of bug 635093
Product: glib
Classification: Platform
Component: win32
2.26.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-19 17:04 UTC by Kazuki Iwamoto
Modified: 2011-01-30 07:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gtimer.c (370 bytes, patch)
2010-10-19 17:04 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2010-10-19 17:04:31 UTC
Created attachment 172742 [details] [review]
patch for gtimer.c

sys/time.h is included unconditionally.
"#include <sys/time.h>" should be surrounded by "#ifdef HAVE_SYS_TIME_H" and "#endif".
For example,

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */
Comment 1 Kazuki Iwamoto 2011-01-30 07:29:57 UTC
This problem was already resolved in #635093.

*** This bug has been marked as a duplicate of bug 635093 ***