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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.