GNOME Bugzilla – Bug 309351
io.h is needed in gmappedfile.c.
Last modified: 2005-07-02 19:59:00 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:
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