Ticket #2959: boost_1_38_0.config.vxworks.patch

File boost_1_38_0.config.vxworks.patch, 1.8 KB (added by Dustin Spicuzza <dustin@…>, 14 years ago)
  • boost/config/platform/vxworks.hpp

    diff -r --unidirectional-new-file -u boost_1_38_0/boost/config/platform/vxworks.hpp boost_1_38_vxworks/boost/config/platform/vxworks.hpp
    old new  
     1//  (C) Copyright Dustin Spicuzza 2009.
     2//  Use, modification and distribution are subject to the
     3//  Boost Software License, Version 1.0. (See accompanying file
     4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     5
     6//  See http://www.boost.org for most recent version.
     7
     8//  vxWorks specific config options:
     9
     10#define BOOST_PLATFORM "vxWorks"
     11
     12#define BOOST_NO_CWCHAR
     13#define BOOST_NO_INTRINSIC_WCHAR_T
     14
     15#if defined(__GNUC__) && defined(__STRICT_ANSI__)
     16#define BOOST_NO_INT64_T
     17#endif
     18
     19#define BOOST_HAS_UNISTD_H
     20
     21// these allow posix_features to work, since vxWorks doesn't
     22// define them itself
     23#define _POSIX_TIMERS 1
     24#define _POSIX_THREADS 1
     25
     26// vxworks doesn't work with asio serial ports
     27#define BOOST_ASIO_DISABLE_SERIAL_PORT
     28
     29// boilerplate code:
     30#include <boost/config/posix_features.hpp>
     31 
     32
     33
  • boost/config/select_platform_config.hpp

    diff -r --unidirectional-new-file -u boost_1_38_0/boost/config/select_platform_config.hpp boost_1_38_vxworks/boost/config/select_platform_config.hpp
    old new  
    6161// QNX:
    6262#  define BOOST_PLATFORM_CONFIG "boost/config/platform/qnxnto.hpp"
    6363
     64#elif defined(__VXWORKS__)
     65// vxWorks:
     66#  define BOOST_PLATFORM_CONFIG "boost/config/platform/vxworks.hpp"
     67
    6468#else
    6569
    6670#  if defined(unix) \