GNOME Bugzilla – Bug 725513
Some tests fail to build on W32
Last modified: 2014-08-04 06:02:17 UTC
Some headers are not included, and getpid() is not a valid function.
Created attachment 270713 [details] [review] Fix tests to compile again - add missing headers to W32, call correct process-id-getting function
Created attachment 274821 [details] [review] Fix tests to compile again - add missing headers to W32, call correct process-id-getting function v2: same thing, just attached with git bz
Review of attachment 274821 [details] [review]: I'd say go ahead.
Attachment 274821 [details] pushed as 4f73487 - Fix tests to compile again - add missing headers to W32, call correct process-id-getting function
Review of attachment 274821 [details] [review]: Hi, Just some notes here on my side... There were some work some time ago[1][2] about only including unistd.h on non-Windows, so I guess it is my fault on the test sources that I should test-build them with the /W3 (or so, warning level #3) so that I could see the C4013 warnings (i.e. implcit declaration of ...) so that a warning is issued for those functions, so that the correct Windows headers are included. Sorry 'bout it. For win32-streams.c, would it be preferred that we include process.h for using getpid() instead? [1]: https://git.gnome.org/browse/glib/commit/?id=d262b6fe0ca851a47fede2e624cec4aa041f2f14 [2]: https://git.gnome.org/browse/glib/commit/?id=f4931142806556123ce75dcf8b84e60dc7cd4e3c With blessings.