WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
17803
Can't build ThreadingPthreads.cpp in non-pch build; can't build pcre_exec.cpp with -DDEBUG
https://bugs.webkit.org/show_bug.cgi?id=17803
Summary
Can't build ThreadingPthreads.cpp in non-pch build; can't build pcre_exec.cpp...
Mark Mentovai
Reported
2008-03-12 13:24:10 PDT
During a non-precompiled header build, wtf/ThreadingPthreads.cpp compilation fails for want of a declaration of gettimeofday. ThreadingPthreads.cpp includes time.h, but should include sys/time.h. sys/time.h will bring in time.h under normal circumstances. During a build with -DDEBUG set (the checked-in project file does not set -DDEBUG, but it's not abnormal for -DDEBUG to be set in debug builds), pcre/pcre_exec.cpp compilation fails because rc is not defined. rc is used in two DPRINTF statements, which are only used when DEBUG is defined. rc is a typo, these DPRINTFs should use returnCode.
Attachments
Fix #include in ThreadingPthreads.cpp, fix variable name in pcre_exec.cpp
(1.70 KB, patch)
2008-03-12 13:25 PDT
,
Mark Mentovai
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Mentovai
Comment 1
2008-03-12 13:25:26 PDT
Created
attachment 19708
[details]
Fix #include in ThreadingPthreads.cpp, fix variable name in pcre_exec.cpp
Eric Seidel (no email)
Comment 2
2008-03-12 14:27:08 PDT
Comment on
attachment 19708
[details]
Fix #include in ThreadingPthreads.cpp, fix variable name in pcre_exec.cpp oops. rc vs. returnCode was my fault I bet. sys/time.h includes time.h, so that should be fine. r=me.
Eric Seidel (no email)
Comment 3
2008-03-13 20:45:44 PDT
Thank you mark for making such easy-to-land patches. These took only a few minutes to land on my train ride home. :) These are revisions
r31048
through
r31053
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