Changeset 35234 in webkit for trunk/JavaScriptCore/wtf/Platform.h


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/Platform.h

    r34969 r35234  
    5858#endif
    5959
     60/* PLATFORM(OPENBSD) */
     61/* Operating system level dependencies for OpenBSD systems that */
     62/* should be used regardless of operating environment */
     63#ifdef __OpenBSD__
     64#define WTF_PLATFORM_OPENBSD 1
     65#endif
     66
    6067/* PLATFORM(SOLARIS) */
    6168/* Operating system level dependencies for Solaris that should be used */
     
    173180#endif
    174181
     182/* PLATFORM(SPARC64) */
     183#if defined(__sparc64__)
     184#define WTF_PLATFORM_SPARC64 1
     185#define WTF_PLATFORM_BIG_ENDIAN 1
     186#endif
     187
    175188/* Compiler */
    176189
Note: See TracChangeset for help on using the changeset viewer.