WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
128597
need to #include <libgen.h> for basename
https://bugs.webkit.org/show_bug.cgi?id=128597
Summary
need to #include <libgen.h> for basename
Allison Lortie (desrt)
Reported
2014-02-11 05:57:26 PST
Created
attachment 223845
[details]
Be sure to #include <libgen.h> for basename Source/WebKit2/PluginProcess/unix/PluginProcessMainUnix.cpp uses basename() but does not #include <libgen.h> according to POSIX, this is the correct header to use (and even the Linux manpages agree):
http://pubs.opengroup.org/onlinepubs/007908775/xsh/libgen.h.html
Attachments
Be sure to #include <libgen.h> for basename
(827 bytes, patch)
2014-02-11 05:57 PST
,
Allison Lortie (desrt)
no flags
Details
Formatted Diff
Diff
Patch
(1.14 KB, patch)
2014-02-24 13:20 PST
,
Allison Lortie (desrt)
no flags
Details
Formatted Diff
Diff
Patch
(1.21 KB, patch)
2014-02-27 05:18 PST
,
Allison Lortie (desrt)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Landry Breuil
Comment 1
2014-02-17 11:39:55 PST
Same issue on OpenBSD, fixed by
http://www.openbsd.org/cgi-bin/cvsweb/ports/www/webkit/patches/patch-Source_WebKit2_PluginProcess_unix_PluginProcessMainUnix_cpp?rev=1.1
Dunno if the #include has to be os-specific...
Allison Lortie (desrt)
Comment 2
2014-02-17 11:46:01 PST
The header is POSIX-specified, so it should definitely not be made OS-specific.
Alexey Proskuryakov
Comment 3
2014-02-24 11:06:57 PST
Comment on
attachment 223845
[details]
Be sure to #include <libgen.h> for basename Please add a ChangeLog, as described at <
http://www.webkit.org/coding/contributing.html
>. Either you or someone else has to make a ChangeLog entry for landing.
Allison Lortie (desrt)
Comment 4
2014-02-24 13:20:26 PST
Created
attachment 225088
[details]
Patch
Alberto Garcia
Comment 5
2014-02-27 05:05:57 PST
(In reply to
comment #4
)
> Created an attachment (id=225088) [details] > Patch
Yeah, thinks looks good, thanks a lot!
Allison Lortie (desrt)
Comment 6
2014-02-27 05:18:45 PST
Created
attachment 225359
[details]
Patch
WebKit Commit Bot
Comment 7
2014-02-27 05:53:30 PST
Comment on
attachment 225359
[details]
Patch Clearing flags on attachment: 225359 Committed
r164797
: <
http://trac.webkit.org/changeset/164797
>
WebKit Commit Bot
Comment 8
2014-02-27 05:53:32 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug