[SF 2725424] TestThreadStack size fails on Solaris

This commit is contained in:
Aleksandar Fabijanic 2009-04-01 18:41:25 +00:00
parent d77ef57588
commit 11dc7df7e0
5 changed files with 18 additions and 9 deletions

View File

@ -206,15 +206,16 @@ void EnvironmentImpl::nodeIdImpl(NodeId& id)
//
#include <sys/ioctl.h>
#if defined(sun) || defined(__sun) || defined(__sun__)
#define __EXTENSIONS__
#include <net/if_arp.h>
#include <sys/sockio.h>
#include <stropts.h>
# ifndef __EXTENSIONS__
# define __EXTENSIONS__
# endif
# include <net/if_arp.h>
# include <sys/sockio.h>
# include <stropts.h>
#endif
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>

View File

@ -33,7 +33,9 @@
// DEALINGS IN THE SOFTWARE.
//
#define __EXTENSIONS__
#ifndef __EXTENSIONS__
# define __EXTENSIONS__
#endif
#include <math.h>
#include "Poco/FPEnvironment_SUN.h"

View File

@ -42,8 +42,11 @@
# if !defined(__EXTENSIONS__)
# define __EXTENSIONS__
# endif
// must be limits.h for PTHREAD_STACK_MIN on Solaris
# include <limits.h>
#else
# include <climits>
#endif
#include <climits>
//

View File

@ -41,8 +41,11 @@
# if !defined(__EXTENSIONS__)
# define __EXTENSIONS__
# endif
// must be limits.h for PTHREAD_STACK_MIN on Solaris
# include <limits.h>
#else
# include <climits>
#endif
#include <climits>
using Poco::Thread;

View File

@ -62,7 +62,7 @@ RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
#
# System Specific Libraries