<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>82585</bug_id>
          
          <creation_ts>2012-03-29 01:55:02 -0700</creation_ts>
          <short_desc>Cross-platform processor core counter: fix build on OpenBSD/NetBSD.</short_desc>
          <delta_ts>2012-04-25 16:01:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Landry Breuil">landry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rakuco</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>590951</commentid>
    <comment_count>0</comment_count>
    <who name="Landry Breuil">landry</who>
    <bug_when>2012-03-29 01:55:02 -0700</bug_when>
    <thetext>Followup to #81482, as stated in comment #5 on OpenBSD/NetBSD you need to include sys/param.h to use sysctl(), otherwise some #defines are missing.
Is it a problem to also include it on darwin/freebsd, or should it be made for all 4 oses ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>591160</commentid>
    <comment_count>1</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-03-29 07:22:35 -0700</bug_when>
    <thetext>Using sys/param.h should be fine on FreeBSD as well (it includes sys/types.h if LOCORE is not defined). Dunno about OS X, as I don&apos;t have access to a Mac. You could try sending a patch and checking if the bots complain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609145</commentid>
    <comment_count>2</comment_count>
      <attachid>138667</attachid>
    <who name="Landry Breuil">landry</who>
    <bug_when>2012-04-24 15:27:15 -0700</bug_when>
    <thetext>Created attachment 138667
Include sys/param.h to use sysctl() on Open/NetBSD

Dunno if setting review to ? will be enough to trigger the bots...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609181</commentid>
    <comment_count>3</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-04-24 15:54:40 -0700</bug_when>
    <thetext>You need to submit a patch against the top-level tree, it looks like you&apos;ve diff&apos;ed against Source/WTF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609546</commentid>
    <comment_count>4</comment_count>
    <who name="Landry Breuil">landry</who>
    <bug_when>2012-04-25 01:39:36 -0700</bug_when>
    <thetext>Yeah, i don&apos;t have the full repo, only Source/. You guys have an insanely huge repo, i tried to svn co trunk once and gave up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609548</commentid>
    <comment_count>5</comment_count>
      <attachid>138760</attachid>
    <who name="Landry Breuil">landry</who>
    <bug_when>2012-04-25 01:43:04 -0700</bug_when>
    <thetext>Created attachment 138760
Include sys/param.h to use sysctl() on Open/NetBSD

Lets retry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609696</commentid>
    <comment_count>6</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-04-25 06:29:02 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Yeah, i don&apos;t have the full repo, only Source/. You guys have an insanely huge repo, i tried to svn co trunk once and gave up.

The largest part of it is the LayoutTests/ directory, which you can ignore.

$ svn co -N http://svn.webkit.org/repository/webkit/trunk WebKit
$ cd WebKit
$ svn up Source

Additionally, the Tools/ directory has some useful scripts to help generate the ChangeLog entries and things like that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609915</commentid>
    <comment_count>7</comment_count>
    <who name="Landry Breuil">landry</who>
    <bug_when>2012-04-25 11:06:33 -0700</bug_when>
    <thetext>All green on the bots.. anyone care to review/commit ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>610083</commentid>
    <comment_count>8</comment_count>
      <attachid>138760</attachid>
    <who name="Zoltan Herczeg">zherczeg</who>
    <bug_when>2012-04-25 15:15:28 -0700</bug_when>
    <thetext>Comment on attachment 138760
Include sys/param.h to use sysctl() on Open/NetBSD

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>610120</commentid>
    <comment_count>9</comment_count>
      <attachid>138760</attachid>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-04-25 16:01:34 -0700</bug_when>
    <thetext>Comment on attachment 138760
Include sys/param.h to use sysctl() on Open/NetBSD

Clearing flags on attachment: 138760

Committed r115254: &lt;http://trac.webkit.org/changeset/115254&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>610122</commentid>
    <comment_count>10</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-04-25 16:01:43 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>138667</attachid>
            <date>2012-04-24 15:27:15 -0700</date>
            <delta_ts>2012-04-25 01:43:04 -0700</delta_ts>
            <desc>Include sys/param.h to use sysctl() on Open/NetBSD</desc>
            <filename>webkit-bug-82585.diff</filename>
            <type>text/plain</type>
            <size>1077</size>
            <attacher name="Landry Breuil">landry</attacher>
            
              <data encoding="base64">SW5kZXg6IHd0Zi9OdW1iZXJPZkNvcmVzLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09P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zLmNwcDogaW5jbHVkZSA8c3lzL3BhcmFtLmg+IG9u
IHRoZSBCU0RzCisKIDIwMTItMDQtMjQgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29tPgog
CiAgICAgICAgIEl0ZXJhdGluZyBhIEhhc2hNYXA8U3RyaW5nLCBYPiBpbnZvbHZlcyBhIHN0cmlu
ZyBlcXVhbGl0eSBjb21wYXJpc29uIHRvIGNoZWNrIGZvciB0aGUgZW1wdHkgdmFsdWUK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>138760</attachid>
            <date>2012-04-25 01:43:04 -0700</date>
            <delta_ts>2012-04-25 16:01:34 -0700</delta_ts>
            <desc>Include sys/param.h to use sysctl() on Open/NetBSD</desc>
            <filename>webkit-bug-82585.diff</filename>
            <type>text/plain</type>
            <size>1143</size>
            <attacher name="Landry Breuil">landry</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvd3RmL051bWJlck9mQ29yZXMuY3BwCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XVEYvd3RmL051bWJlck9mQ29yZXMuY3BwCShyZXZpc2lvbiAxMTQ4ODEpCisrKyBTb3Vy
Y2UvV1RGL3d0Zi9OdW1iZXJPZkNvcmVzLmNwcAkod29ya2luZyBjb3B5KQpAQCAtMjcsNiArMjcs
NyBAQAogI2luY2x1ZGUgIk51bWJlck9mQ29yZXMuaCIKIAogI2lmIE9TKERBUldJTikgfHwgT1Mo
T1BFTkJTRCkgfHwgT1MoTkVUQlNEKSB8fCBPUyhGUkVFQlNEKQorI2luY2x1ZGUgPHN5cy9wYXJh
bS5oPgogLy8gc3lzL3R5cGVzLmggbXVzdCBjb21lIGJlZm9yZSBzeXMvc3lzY3RsLmggYmVjYXVz
ZSB0aGUgbGF0dGVyIHVzZXMKIC8vIGRhdGEgdHlw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