]> git.sur5r.net Git - openldap/commitdiff
Remove #ifdef sunos in lthread HAVE_LWP code.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 15 Nov 1998 22:05:28 +0000 (22:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 15 Nov 1998 22:05:28 +0000 (22:05 +0000)
include/lthread.h
libraries/liblthread/stack.c
libraries/liblthread/thread.c
servers/slurpd/tsleep.c

index 52af54ccbf1a9d0eedaad999a52b78ee907ceeda..2a23c7791fdebb36fd5c58731c38ad5753cd8f65 100644 (file)
@@ -148,6 +148,9 @@ LDAP_END_DECL
 
 LDAP_BEGIN_DECL
 
+stkalign_t *get_stack( int *stacknop );
+void free_stack( int *stackno );
+
 typedef void   *(*VFP)();
 
 /* thread attributes and thread type */
index ad16bfd945da586d78153f9f1e9c21ab94260d76..c90eead743dc88fc3460476bcc0fa86bebf64057 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "portable.h"
 
+#if defined( HAVE_LWP )
+
 #include <stdio.h>
 
 #include <ac/time.h>
@@ -10,8 +12,6 @@
 #include "lber.h"
 #include "ldap.h"
 
-#if defined( sunos4 )
-
 #include <lwp/lwp.h>
 #include <lwp/stackdep.h>
 
index 68baf5f30f4a9f60be2de8fb177f47b2eef09115..8604b37f49841d55b25579f1a04ab07f75308d98 100644 (file)
@@ -317,9 +317,6 @@ pthread_cond_broadcast( pthread_cond_t *cv )
  *           *
  *************/
 
-extern stkalign_t      *get_stack();
-static void            lwp_create_stack();
-
 int
 pthread_attr_init( pthread_attr_t *attr )
 {
@@ -347,6 +344,14 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate )
        return( 0 );
 }
 
+static void
+lwp_create_stack( VFP func, void *arg, int stackno )
+{
+       (*func)( arg );
+
+       free_stack( stackno );
+}
+
 /* ARGSUSED */
 int
 pthread_create(
@@ -366,14 +371,6 @@ pthread_create(
            arg, stackno ) );
 }
 
-static void
-lwp_create_stack( VFP func, void *arg, int stackno )
-{
-       (*func)( arg );
-
-       free_stack( stackno );
-}
-
 void
 pthread_yield()
 {
index bfbdffbfa27a9c0311d579f6b21a63af6251d4a2..548a71544d8368d2ad37d42c4be436760e3a8a55 100644 (file)
@@ -34,9 +34,6 @@
 
 #if defined( HAVE_LWP )
 
-extern stkalign_t *get_stack( int * );
-extern void free_stack( int );
-
 int
 tsleep(
     int        interval