-#if !defined(HAVE_PTHREADS_D4)
- /* POSIX_THREADS or compatible
- * This is a draft 10 or standard pthreads implementation
- */
- if ( pthread_create( &listener_tid, &attr, slapd_daemon,
- (void *) port ) != 0 ) {
- Debug( LDAP_DEBUG_ANY,
- "listener pthread_create failed\n", 0, 0, 0 );
- exit( 1 );
- }
-#else /* draft4 */
- /*
- * This is a draft 4 or earlier pthreads implementation
- */
- if ( pthread_create( &listener_tid, attr, slapd_daemon,
+ if ( pthread_create( &listener_tid, NULL, slapd_daemon,