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


Ignore:
Timestamp:
Aug 14, 2009, 7:44:34 AM (16 years ago)
Author:
Simon Hausmann
Message:

Adding QNX as a platform. Currently only tested with Qt.

Patch by Harald Fernengel <[email protected]> on 2009-07-31
Reviewed by Simon Hausmann.

https://bugs.webkit.org/show_bug.cgi?id=27885

  • JavaScriptCore/runtime/Collector.cpp: Added retrieving of stack base since QNX doesn't have the pthread _nt functions
  • JavaScriptCore/wtf/Platform.h: Added WTF_PLATFORM_QNX and corresponding defines
  • WebCore/bridge/npapi.h: Build fix for missing typedefs on QNX
File:
1 edited

Legend:

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

    r47278 r47284  
    109109#endif
    110110
     111/* PLATFORM(QNX) */
     112/* Operating system level dependencies for QNX that should be used */
     113/* regardless of operating environment */
     114#if defined(__QNXNTO__)
     115#define WTF_PLATFORM_QNX 1
     116#endif
     117
    111118/* PLATFORM(UNIX) */
    112119/* Operating system level dependencies for Unix-like systems that */
     
    120127   || defined(__unix__)    \
    121128   || defined(_AIX)        \
    122    || defined(__HAIKU__)
     129   || defined(__HAIKU__)   \
     130   || defined(__QNXNTO__)
    123131#define WTF_PLATFORM_UNIX 1
    124132#endif
     
    449457#endif
    450458
    451 #if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(SYMBIAN) && !PLATFORM(HAIKU) && !COMPILER(RVCT)
     459#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(QNX) \
     460    && !PLATFORM(SYMBIAN) && !PLATFORM(HAIKU) && !COMPILER(RVCT)
    452461#define HAVE_TM_GMTOFF 1
    453462#define HAVE_TM_ZONE 1
     
    498507#define HAVE_SYS_PARAM_H 1
    499508#endif
     509
     510#elif PLATFORM(QNX)
     511
     512#define HAVE_ERRNO_H 1
     513#define HAVE_MMAP 1
     514#define HAVE_SBRK 1
     515#define HAVE_STRINGS_H 1
     516#define HAVE_SYS_PARAM_H 1
     517#define HAVE_SYS_TIME_H 1
    500518
    501519#else
Note: See TracChangeset for help on using the changeset viewer.