]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/globals.c
The result set of an EQUALITY search on a SYNTAX_BIN attribute may have been
[openldap] / servers / slurpd / globals.c
index 89403fc490c02a5ddbd734a1670de7c93132581b..91b7e3086fcc6b90f3364dea62b1b4238b526e0d 100644 (file)
  * globals.c - initialization code for global data
  */
 
-#include <portable.h>
+#include "portable.h"
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <ac/string.h>
 
 #include "slurp.h"
 #include "globals.h"
@@ -31,7 +33,8 @@ int ldap_debug = 0;
 /*
  * Initialize the globals
  */
-Globals *init_globals()
+Globals *
+init_globals( void )
 {
     Globals *g;
 
@@ -62,13 +65,13 @@ Globals *init_globals()
        fprintf( stderr, "Cannot initialize queue\n" );
        exit( 1 );
     }
-#ifdef KERBEROS
+#ifdef HAVE_KERBEROS
     g->default_srvtab = SRVTAB;
-#endif /* KERBEROS */
-#if defined( THREAD_SUNOS4_LWP )
+#endif /* HAVE_KERBEROS */
+#if defined( HAVE_LWP )
     g->tsl_list = NULL;
     mon_create( &g->tsl_mon ); 
-#endif /* THREAD_SUNOS4_LWP */
+#endif /* HAVE_LWP */
 
     return g;
 }