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 309351 - io.h is needed in gmappedfile.c.
io.h is needed in gmappedfile.c.
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.7.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-02 19:17 UTC by Kazuki Iwamoto
Modified: 2005-07-02 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2005-07-02 19:17:08 UTC
Please describe the problem:
On Windows, io.h is needed for using function "close".
Please add the following.

#ifdef G_OS_WIN32
#include <io.h>
#endif

Steps to reproduce:
1. compile by Visual C++

Actual results:
Following message is displayed.
gmappedfile.c(184) : error C4013: 'close' undefined; assuming extern returning int

Expected results:
And add "include <io.h>" between "#ifdef G_OS_WIN32" and "#endif".

Does this happen every time?
every time

Other information:
Comment 1 Hans Breuer 2005-07-02 19:59:00 UTC
Justfixed in cvs:

2005-07-01  Hans Breuer  <hans@breuer.org>

	* glib/gmessages.c : include <process.h> for getpid()
	* glib/gmappedfile.c : include <io.h> for close() etc.
	* glib/makefile.msc.in : add 	gmappedfile.obj