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 156075 - gtkiconcache.c: define MAP_FAILED and include io.h
gtkiconcache.c: define MAP_FAILED and include io.h
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-10-21 17:24 UTC by Kazuki Iwamoto
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
win32 patch for gtkiconcache.c (584 bytes, patch)
2004-10-21 17:25 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2004-10-21 17:24:20 UTC
Please describe the problem:
gtkiconcache.c has two problems.

1.
When gtkiconcache.c doesn't include sys/mman.h, it uses MAP_FAILED.
So it is necessary to define MAP_FAILED.

2.
On Windows, io.h is needed for using function "open".


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


Actual results:
error occur

Expected results:


Does this happen every time?
every time

Other information:
Comment 1 Kazuki Iwamoto 2004-10-21 17:25:25 UTC
Created attachment 32885 [details] [review]
win32 patch for gtkiconcache.c
Comment 2 Matthias Clasen 2004-10-21 18:57:48 UTC
2004-10-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconcache.c: Include io.h on windows.  (#156075,
	Kazuki IWAMOTO)