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 325015 - gslice.c: process.h is needed on Windows
gslice.c: process.h is needed on Windows
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.9.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-26 17:55 UTC by Kazuki Iwamoto
Modified: 2005-12-26 23:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2005-12-26 17:55:15 UTC
Please describe the problem:
'getpid' is prototyped in process.h on Windows.
So process.h should be included if G_OS_WIN32 is defined.

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

Actual results:
following message is displayed.
glib\glib\gslice.c(1073) : error C4013: 'getpid' undefined; assuming extern
returning int

Expected results:
Add "#include <process.h>" between "#ifdef G_OS_WIN32" and "#endif".

Does this happen every time?
every time

Other information:
Comment 1 Matthias Clasen 2005-12-26 23:18:50 UTC
2005-12-26  Matthias Clasen  <mclasen@redhat.com>

	* glib/gslice.c: On Win32, include process.h  (#325015, Kazuki
	Iwamoto)