* 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"
/*
* Initialize the globals
*/
-Globals *init_globals()
+Globals *
+init_globals( void )
{
Globals *g;
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;
}