GNOME Bugzilla – Bug 325015
gslice.c: process.h is needed on Windows
Last modified: 2005-12-26 23:18:50 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:
2005-12-26 Matthias Clasen <mclasen@redhat.com> * glib/gslice.c: On Win32, include process.h (#325015, Kazuki Iwamoto)