mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 21:50:47 +01:00
[SF 2725424] TestThreadStack size fails on Solaris
This commit is contained in:
@@ -206,15 +206,16 @@ void EnvironmentImpl::nodeIdImpl(NodeId& id)
|
|||||||
//
|
//
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#if defined(sun) || defined(__sun) || defined(__sun__)
|
#if defined(sun) || defined(__sun) || defined(__sun__)
|
||||||
#define __EXTENSIONS__
|
# ifndef __EXTENSIONS__
|
||||||
#include <net/if_arp.h>
|
# define __EXTENSIONS__
|
||||||
#include <sys/sockio.h>
|
# endif
|
||||||
#include <stropts.h>
|
# include <net/if_arp.h>
|
||||||
|
# include <sys/sockio.h>
|
||||||
|
# include <stropts.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <net/if.h>
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
//
|
//
|
||||||
|
|
||||||
#define __EXTENSIONS__
|
#ifndef __EXTENSIONS__
|
||||||
|
# define __EXTENSIONS__
|
||||||
|
#endif
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "Poco/FPEnvironment_SUN.h"
|
#include "Poco/FPEnvironment_SUN.h"
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,11 @@
|
|||||||
# if !defined(__EXTENSIONS__)
|
# if !defined(__EXTENSIONS__)
|
||||||
# define __EXTENSIONS__
|
# define __EXTENSIONS__
|
||||||
# endif
|
# endif
|
||||||
|
// must be limits.h for PTHREAD_STACK_MIN on Solaris
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <climits>
|
||||||
#endif
|
#endif
|
||||||
#include <climits>
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -41,8 +41,11 @@
|
|||||||
# if !defined(__EXTENSIONS__)
|
# if !defined(__EXTENSIONS__)
|
||||||
# define __EXTENSIONS__
|
# define __EXTENSIONS__
|
||||||
# endif
|
# endif
|
||||||
|
// must be limits.h for PTHREAD_STACK_MIN on Solaris
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <climits>
|
||||||
#endif
|
#endif
|
||||||
#include <climits>
|
|
||||||
|
|
||||||
|
|
||||||
using Poco::Thread;
|
using Poco::Thread;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ RELEASEOPT_LINK =
|
|||||||
#
|
#
|
||||||
# System Specific Flags
|
# 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
|
# System Specific Libraries
|
||||||
|
|||||||
Reference in New Issue
Block a user