summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2005-04-18 20:45:01 +0000
committerNathan Kinder <nkinder@redhat.com>2005-04-18 20:45:01 +0000
commite92ef06ca32689a87e4c0c9eb15b1df0f442d98e (patch)
treec9cdea077e7bd147732b01242ca99a60c06dd00d /ldap/servers/plugins/replication
parent365804864dd9f87d93dfc7d6c557f5bd1ad2397e (diff)
HP-UX IPF Porting changes
Diffstat (limited to 'ldap/servers/plugins/replication')
-rw-r--r--ldap/servers/plugins/replication/cl5_api.c4
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c
index cff5b5da..4b02299c 100644
--- a/ldap/servers/plugins/replication/cl5_api.c
+++ b/ldap/servers/plugins/replication/cl5_api.c
@@ -156,7 +156,11 @@
* The value 0 means use the default stacksize.
*/
#if defined (OSF1) || defined (__LP64__) || defined (_LP64) /* 64-bit architectures need bigger stacks */
+#if defined(__hpux) && defined(__ia64)
+#define DEFAULT_THREAD_STACKSIZE 524288L
+#else
#define DEFAULT_THREAD_STACKSIZE 131072L
+#endif
#else
#define DEFAULT_THREAD_STACKSIZE 0
#endif
diff --git a/ldap/servers/plugins/replication/repl5_protocol.c b/ldap/servers/plugins/replication/repl5_protocol.c
index 27af7249..867af479 100644
--- a/ldap/servers/plugins/replication/repl5_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_protocol.c
@@ -343,7 +343,11 @@ prot_start(Repl_Protocol *rp)
if (NULL != rp)
{
if (PR_CreateThread(PR_USER_THREAD, prot_thread_main, (void *)rp,
+#if defined(__hpux) && defined(__ia64)
+ PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_UNJOINABLE_THREAD, 524288L ) == NULL)
+#else
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_UNJOINABLE_THREAD, SLAPD_DEFAULT_THREAD_STACKSIZE) == NULL)
+#endif
{
PRErrorCode prerr = PR_GetError();