Changeset 12296 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 22, 2006, 8:39:36 PM (19 years ago)
Author:
staikos
Message:

Reviewed by Maciej
Compile fix for FreeBSD 5.4 from KDE

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r12289 r12296  
     12006-01-22  George Staikos <[email protected]>
     2
     3        Reviewed by Maciej.
     4
     5        * kjs/collector.cpp: merge FreeBSD compile fix from KDE
     6                             -> requires build magic for use
     7
    182006-01-21  George Staikos <[email protected]>
    29
  • trunk/JavaScriptCore/kjs/collector.cpp

    r12028 r12296  
    5050#include <pthread.h>
    5151
     52#ifdef HAVE_PTHREAD_NP_H
     53
     54#include <pthread_np.h>
     55
     56#endif
     57
    5258#endif
    5359
     
    310316    void *stackBase = 0;
    311317    pthread_attr_t sattr;
     318#ifdef HAVE_PTHREAD_NP_H
     319    // e.g. on FreeBSD 5.4, [email protected]
     320    pthread_attr_get_np(thread, &sattr);
     321#else
    312322    // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
    313323    pthread_getattr_np(pthread_self(), &sattr);
     324#endif
    314325    // Should work but fails on Linux (?)
    315326    //  pthread_attr_getstack(&sattr, &stackBase, &stackSize);
Note: See TracChangeset for help on using the changeset viewer.