Bug 15463 - getpid(2) and #include <unistd.h>
Summary: getpid(2) and #include <unistd.h>
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 03:50 PDT by Jeremy C. Reed
Modified: 2011-06-15 00:05 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy C. Reed 2007-10-11 03:50:53 PDT
Was building WebKit-r26183 and it failed due to unknown getpid. This build platform is DragonFly (which is unknown to qmake).

My patch follows. I assume it is needed for other BSDs also.

--- JavaScriptCore/kjs/interpreter.cpp.orig     2007-10-10 19:33:20.000000000 -0700
+++ JavaScriptCore/kjs/interpreter.cpp  2007-10-10 19:33:57.000000000 -0700
@@ -56,6 +56,8 @@
 #include <math.h>
 #include <signal.h>
 #include <stdio.h>
+#include <sys/types.h> /* for DragonFly */
+#include <unistd.h>    /* for NetBSD and DragonFly for getpid */
 
 #if PLATFORM(WIN_OS)
 #include <windows.h>
Comment 1 David Kilzer (:ddkilzer) 2007-10-13 01:25:42 PDT
Thanks for the patch Jeremy!  Please create an attachment containing the patch and a ChangeLog entry as outlined here, and set the "review?" flag on the patch:

http://webkit.org/coding/contributing.html

Comment 2 Gavin Barraclough 2011-06-15 00:05:54 PDT
I think this bug is probably now obsolete since the attached patch is over 60,000 revisions out of date!  If these include changes are still necessary to get ToT to build, then please reopen & attach an updated patch!

Many thanks,
G.