mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 15:14:48 +02:00
[SF 2725424] TestThreadStack size fails on Solaris
This commit is contained in:
parent
d77ef57588
commit
11dc7df7e0
@ -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>
|
||||
|
@ -33,7 +33,9 @@
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#define __EXTENSIONS__
|
||||
#ifndef __EXTENSIONS__
|
||||
# define __EXTENSIONS__
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include "Poco/FPEnvironment_SUN.h"
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
||||
//
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user