*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
This commit is contained in:
@@ -1,33 +1,43 @@
|
||||
/* -*- C++ -*- */
|
||||
// $Id: config-vxworks6.2.h 81850 2008-06-06 08:39:54Z vzykov $
|
||||
|
||||
// The following configuration file is designed to work for VxWorks
|
||||
// 6.2 platforms using one of these compilers:
|
||||
// 1) The GNU g++ compiler that is shipped with VxWorks 6.2
|
||||
|
||||
#ifndef ACE_CONFIG_VXWORKS_6_2_H
|
||||
#define ACE_CONFIG_VXWORKS_6_2_H
|
||||
#include /**/ "ace/pre.h"
|
||||
|
||||
#if ! defined (VXWORKS)
|
||||
# define VXWORKS
|
||||
#endif /* ! VXWORKS */
|
||||
|
||||
#if ! defined (ACE_VXWORKS)
|
||||
# define ACE_VXWORKS 0x620
|
||||
#endif /* ! ACE_VXWORKS */
|
||||
|
||||
#if defined __RTP__
|
||||
// Fix wrong typedef in unistd.h (unsigned short)
|
||||
#define _SUSECONDS_T
|
||||
typedef long suseconds_t;
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
// Fix for including right typedef for pid_t in VxTypes.h (int)
|
||||
#include <vxWorksCommon.h>
|
||||
|
||||
#if ! defined (__ACE_INLINE__)
|
||||
# define __ACE_INLINE__
|
||||
#endif /* ! __ACE_INLINE__ */
|
||||
|
||||
// Compiler-specific configuration.
|
||||
#if defined (__GNUG__)
|
||||
# include "ace/config-g++-common.h"
|
||||
|
||||
# define ACE_LACKS_IOSTREAM_FX
|
||||
# define ACE_LACKS_LINEBUFFERED_STREAMBUF
|
||||
|
||||
# if defined (__RTP__) && !defined (_HAS_C9X)
|
||||
// Workaround for the fact that under RTP the log2 method can't be used
|
||||
// without this define set, see TSR560446
|
||||
@@ -35,20 +45,24 @@
|
||||
# define _C99
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#elif defined (__DCPLUSPLUS__) || defined (__DCC__)
|
||||
// Diab 4.2a or later.
|
||||
# if !defined (ACE_LACKS_PRAGMA_ONCE)
|
||||
// We define it with a -D with make depend.
|
||||
# define ACE_LACKS_PRAGMA_ONCE
|
||||
# endif /* ! ACE_LACKS_PRAGMA_ONCE */
|
||||
|
||||
# define ACE_HAS_STANDARD_CPP_LIBRARY 1
|
||||
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
|
||||
# define ACE_TEMPLATES_REQUIRE_SOURCE
|
||||
|
||||
#else /* ! __GNUG__ && ! ghs && !__DCC__ */
|
||||
# ifdef __cplusplus /* Let it slide for C compilers. */
|
||||
# error unsupported compiler on VxWorks
|
||||
# endif /* __cplusplus */
|
||||
#endif /* ! __GNUG__ && ! ghs */
|
||||
|
||||
#if !defined __RTP__
|
||||
# if defined (TOOL) && (TOOL == gnu)
|
||||
# if defined (CPU) && (CPU == PPC85XX || CPU == PPC604 || CPU == PPC603)
|
||||
@@ -57,6 +71,7 @@
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// OS-specific configuration
|
||||
#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
|
||||
#define ACE_HAS_NONCONST_GETBY
|
||||
@@ -146,6 +161,7 @@
|
||||
# define ACE_VXWORKS_SPARE spare4
|
||||
#endif /* ! ACE_VXWORKS_SPARE */
|
||||
#define ACE_HAS_GETIFADDRS
|
||||
|
||||
#define ACE_LACKS_SETEGID
|
||||
#define ACE_LACKS_SETPGID
|
||||
#define ACE_LACKS_SETREGID
|
||||
@@ -159,6 +175,7 @@
|
||||
#define ACE_LACKS_GETEGID
|
||||
#define ACE_LACKS_GETGID
|
||||
#define ACE_LACKS_SETGID
|
||||
|
||||
#define ACE_LACKS_SYS_UIO_H
|
||||
#define ACE_LACKS_SYS_IPC_H
|
||||
#define ACE_LACKS_SYS_SEM_H
|
||||
@@ -169,6 +186,7 @@
|
||||
#define ACE_LACKS_TERMIOS_H
|
||||
#define ACE_LACKS_POLL_H
|
||||
#define ACE_LACKS_FCNTL
|
||||
|
||||
// Some string things
|
||||
#define ACE_LACKS_STRCASECMP
|
||||
#define ACE_LACKS_ITOW
|
||||
@@ -177,8 +195,10 @@
|
||||
#define ACE_LACKS_WCSNICMP
|
||||
#define ACE_LACKS_STRTOULL
|
||||
#define ACE_LACKS_WCSTOULL
|
||||
|
||||
#define ACE_HAS_CHARPTR_SOCKOPT
|
||||
#define ACE_LACKS_SYMLINKS
|
||||
|
||||
#if defined __RTP__
|
||||
// We are building for RTP mode
|
||||
#if !defined (ACE_AS_STATIC_LIBS)
|
||||
@@ -241,6 +261,7 @@
|
||||
# define ACE_MAIN ace_main
|
||||
#endif /* ! ACE_MAIN */
|
||||
#endif
|
||||
|
||||
// It is possible to enable pthread support with VxWorks, when the user decides
|
||||
// to use this, we need some more defines
|
||||
#if defined ACE_HAS_PTHREADS
|
||||
@@ -267,9 +288,11 @@
|
||||
# define ACE_LACKS_COND_T
|
||||
# define ACE_HAS_MUTEX_TIMEOUTS
|
||||
#endif
|
||||
|
||||
#if !defined (ACE_MT_SAFE)
|
||||
# define ACE_MT_SAFE 1
|
||||
#endif
|
||||
|
||||
// Needed include to get all VxWorks CPU types
|
||||
#include "types/vxCpu.h"
|
||||
#if (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
|
||||
@@ -277,24 +300,30 @@
|
||||
// ACE_OS::gethrtime () can use the RDTSC instruction.
|
||||
# define ACE_HAS_PENTIUM
|
||||
#endif
|
||||
|
||||
// VxWorks defines the CPU define MAP, undef it to prevent problems with
|
||||
// application code
|
||||
#if defined (MAP)
|
||||
#undef MAP
|
||||
#endif /* MAP */
|
||||
|
||||
#if !defined (ACE_NEEDS_HUGE_THREAD_STACKSIZE)
|
||||
# define ACE_NEEDS_HUGE_THREAD_STACKSIZE 65536
|
||||
#endif /* ACE_NEEDS_HUGE_THREAD_STACKSIZE */
|
||||
|
||||
#if !defined (ACE_NTRACE)
|
||||
# define ACE_NTRACE 1
|
||||
#endif /* ACE_NTRACE */
|
||||
|
||||
// By default, don't include RCS Id strings in object code.
|
||||
#if !defined (ACE_USE_RCSID)
|
||||
#define ACE_USE_RCSID 0
|
||||
#endif /* !ACE_USE_RCSID */
|
||||
|
||||
#if defined (ACE_HAS_IP_MULTICAST)
|
||||
# define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
|
||||
#endif /* ACE_HAS_IP_MULTICAST */
|
||||
|
||||
#include /**/ "ace/post.h"
|
||||
#endif /* ACE_CONFIG_VXWORKS_6_2_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user