RESOLVED FIXED Bug 158470
[GTK] Fail to build on FreeBSD because locale.h is not included
https://bugs.webkit.org/show_bug.cgi?id=158470
Summary [GTK] Fail to build on FreeBSD because locale.h is not included
Ting-Wei Lan
Reported 2016-06-07 02:47:20 PDT
Here are the error messages: /home/lantw44/webkit/source/WebKit/Source/JavaScriptCore/jsc.cpp:1955:20: error: use of undeclared identifier 'LC_ALL' if (!setlocale(LC_ALL, "")) ^ 1 error generated. Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/build.make:62: recipe for target 'Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/__/jsc.cpp.o' failed
Attachments
Patch (1.00 KB, patch)
2016-06-07 02:49 PDT, Ting-Wei Lan
no flags
Patch (1.05 KB, patch)
2016-06-07 09:03 PDT, Ting-Wei Lan
no flags
Ting-Wei Lan
Comment 1 2016-06-07 02:49:11 PDT
Darin Adler
Comment 2 2016-06-07 08:57:36 PDT
Comment on attachment 280685 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=280685&action=review > Source/JavaScriptCore/jsc.cpp:114 > +#if PLATFORM(GTK) > +#include <locale.h> > +#endif No reason to put that inside an #if. Should just include this header unconditionally.
Darin Adler
Comment 3 2016-06-07 08:58:13 PDT
Comment on attachment 280685 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=280685&action=review >> Source/JavaScriptCore/jsc.cpp:114 >> +#endif > > No reason to put that inside an #if. Should just include this header unconditionally. Sorry, I don’t mean "no reason", but still, lets include it unconditionally.
Ting-Wei Lan
Comment 4 2016-06-07 09:03:01 PDT
(In reply to comment #3) > >> Source/JavaScriptCore/jsc.cpp:114 > >> +#endif > > > > No reason to put that inside an #if. Should just include this header unconditionally. > > Sorry, I don’t mean "no reason", but still, lets include it unconditionally. OK, I did that because setlocale and LC_ALL are only used by PLATFORM(GTK).
Ting-Wei Lan
Comment 5 2016-06-07 09:03:26 PDT
WebKit Commit Bot
Comment 6 2016-06-07 09:35:46 PDT
Comment on attachment 280709 [details] Patch Clearing flags on attachment: 280709 Committed r201755: <http://trac.webkit.org/changeset/201755>
WebKit Commit Bot
Comment 7 2016-06-07 09:35:50 PDT
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.