Ignore:
Timestamp:
Jul 18, 2008, 8:31:37 AM (17 years ago)
Author:
[email protected]
Message:

Bug 19975: [OpenBSD] Patches to enable build of WebKit

JavaScriptCore:

2008-07-18 Landry Breuil <[email protected]>

Bug 19975: [OpenBSD] Patches to enable build of WebKit

<https://bugs.webkit.org/show_bug.cgi?id=19975>

Reviewed by David Kilzer.

Support for OpenBSD, mostly threading and libm tweaks.

  • kjs/collector.cpp: #include <pthread.h> (KJS::currentThreadStackBase): use pthread_stackseg_np() to get stack base
  • kjs/config.h: OpenBSD also provides <pthread_np.h>
  • wtf/MathExtras.h: #include <sys/types.h> and <machine/ieee.h> (isfinite), (signbit): as long as we don't have those functions provide fallback implementations
  • wtf/Platform.h: Add support for PLATFORM(OPENBSD) and PLATFORM(SPARC64) macro

WebKitTools:

2008-07-18 Landry Breuil <[email protected]>

Bug 19975: [OpenBSD] Patches to enable build of WebKit

<https://bugs.webkit.org/show_bug.cgi?id=19975>

Reviewed by David Kilzer.

  • DumpRenderTree/DumpRenderTree.h: OpenBSD doesn't support wide characters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MathExtras.h

    r34198 r35234  
    3333#if PLATFORM(SOLARIS)
    3434#include <ieeefp.h>
     35#endif
     36
     37#if PLATFORM(OPENBSD)
     38#include <sys/types.h>
     39#include <machine/ieee.h>
    3540#endif
    3641
     
    7277#ifndef signbit
    7378inline bool signbit(double x) { return x < 0.0; } // FIXME: Wrong for negative 0.
     79#endif
     80
     81#endif
     82
     83#if PLATFORM(OPENBSD)
     84
     85#ifndef isfinite
     86inline bool isfinite(double x) { return finite(x); }
     87#endif
     88#ifndef signbit
     89inline bool signbit(double x) { struct ieee_double *p = (struct ieee_double *)&x; return p->dbl_sign; }
    7490#endif
    7591
Note: See TracChangeset for help on using the changeset viewer.